Commit graph

119 commits

Author SHA1 Message Date
Colin Kuskie
4f632b27fc Forbid pasting content below a shortcut, to prevent loops on purge and other operations. Fixes bug #11855. 2010-09-23 16:09:31 -07:00
Graham Knop
006a5003c2 remove WebGUI::Utility::formatBytes 2010-08-20 12:09:58 -05:00
Doug Bell
babfa74209 Merge branch 'master' into 8-merge
Conflicts:
	docs/gotcha.txt
	lib/WebGUI.pm
	lib/WebGUI/Asset.pm
	lib/WebGUI/Asset/File/GalleryFile/Photo.pm
	lib/WebGUI/Asset/Post.pm
	lib/WebGUI/Asset/Story.pm
	lib/WebGUI/Asset/Template.pm
	lib/WebGUI/Asset/Wobject/Calendar.pm
	lib/WebGUI/Asset/Wobject/GalleryAlbum.pm
	lib/WebGUI/Asset/Wobject/Navigation.pm
	lib/WebGUI/AssetLineage.pm
	lib/WebGUI/AssetTrash.pm
	lib/WebGUI/Config.pm
	lib/WebGUI/Form/Template.pm
	lib/WebGUI/Group.pm
	lib/WebGUI/Inbox.pm
	lib/WebGUI/Workflow/Activity/DeleteExpiredSessions.pm
	lib/WebGUI/Workflow/Activity/TrashExpiredEvents.pm
	sbin/testEnvironment.pl
	t/AdSpace.t
	t/AdSpace/Ad.t
	t/Asset/Asset.t
	t/Asset/AssetExportHtml.t
	t/Asset/AssetLineage.t
	t/Asset/EMSSubmissionForm.t
	t/Asset/Event.t
	t/Asset/File/GalleryFile/Photo/00base.t
	t/Asset/File/GalleryFile/Photo/comment.t
	t/Asset/File/GalleryFile/Photo/download.t
	t/Asset/File/GalleryFile/Photo/edit.t
	t/Asset/File/GalleryFile/Photo/exif.t
	t/Asset/File/GalleryFile/Photo/makeResolutions.t
	t/Asset/File/GalleryFile/Photo/makeShortcut.t
	t/Asset/File/Image/setfile.t
	t/Asset/File/setfile.t
	t/Asset/Post.t
	t/Asset/Post/Thread/getAdjacentThread.t
	t/Asset/Sku.t
	t/Asset/Sku/ProductCollateral.t
	t/Asset/Story.t
	t/Asset/Template.t
	t/Asset/Template/HTMLTemplateExpr.t
	t/Asset/Wobject/Gallery/00base.t
	t/Asset/Wobject/GalleryAlbum/00base.t
	t/Asset/Wobject/GalleryAlbum/ajax.t
	t/Asset/Wobject/GalleryAlbum/delete.t
	t/Asset/Wobject/Matrix.t
	t/Asset/Wobject/StoryArchive.t
	t/Asset/Wobject/Survey/ExpressionEngine.t
	t/Asset/Wobject/Survey/Reports.t
	t/AssetAspect/RssFeed.t
	t/Auth/mech.t
	t/Config.t
	t/Group.t
	t/Help/isa.t
	t/International.t
	t/Mail/Send.t
	t/Operation/AdSpace.t
	t/Operation/Auth.t
	t/Pluggable.t
	t/Session.t
	t/Session/DateTime.t
	t/Session/ErrorHandler.t
	t/Session/Scratch.t
	t/Session/Stow.t
	t/Shop/Cart.t
	t/Shop/Pay.t
	t/Shop/PayDriver/ITransact.t
	t/Shop/PayDriver/PayPalStd.t
	t/Shop/Ship.t
	t/Shop/ShipDriver.t
	t/Shop/TaxDriver/EU.t
	t/Shop/TaxDriver/Generic.t
	t/Shop/Transaction.t
	t/Shop/Vendor.t
	t/VersionTag.t
	t/Workflow/Activity/ArchiveOldStories.t
	t/Workflow/Activity/ExpireIncompleteSurveyResponses.t
	t/lib/WebGUI/Test.pm
2010-07-09 11:48:30 -05:00
Colin Kuskie
385931aaab Merge commit 'f2e0fb509a' into WebGUI8. Some tests still failing. 2010-06-27 22:32:31 -07:00
Colin Kuskie
e5b82bc861 Merge commit '4969f31e1f' into WebGUI8 2010-06-26 14:37:31 -07:00
Colin Kuskie
b30491f3a6 Merge commit '808a866c8b' into webgui8. 7.9.4 release point
Conflicts:
	docs/upgrades/packages-7.9.3/root_import_gallery-templates_default-gallery-edit-album.wgpkg
	docs/upgrades/upgrade_7.9.2-7.9.3.pl
	lib/WebGUI.pm
	lib/WebGUI/Asset/MapPoint.pm
	lib/WebGUI/Asset/Wobject/Calendar.pm
	lib/WebGUI/Asset/Wobject/Gallery.pm
	lib/WebGUI/Asset/Wobject/GalleryAlbum.pm
	lib/WebGUI/Asset/Wobject/WikiMaster.pm
	lib/WebGUI/AssetClipboard.pm
	lib/WebGUI/AssetVersioning.pm
	lib/WebGUI/Auth.pm
	t/Asset/Asset.t
2010-06-25 20:08:11 -07:00
Colin Kuskie
3fbc109429 Update Session->Style setScript to default to text/javascript. Update the entire codebase to take advantage of it. 2010-06-24 13:07:03 -07:00
Colin Kuskie
05a19ff7b8 Display assets, regardless of their status, in the Clipboard and Trash. Fixes bug #11550. 2010-06-22 22:31:07 -07:00
Colin Kuskie
7b27498912 Change ->get to direct object accessors. 2010-06-02 19:59:14 -07:00
Doug Bell
2c75ab27e6 migrate to getLineageIterator to save memory 2010-06-01 16:23:49 -05:00
Colin Kuskie
4db2408a18 Pass duplicate the skipAutoCommitWorkflows switch. Fixes bug #11581. 2010-05-22 12:43:27 -07:00
Paul Driver
503a378756 ProgressBar::run and now Asset->www_copy has a bar 2010-05-11 15:34:22 -07:00
Colin Kuskie
94fff8d6fb Removing another ->get from AssetClipboard 2010-04-20 11:25:07 -07:00
Colin Kuskie
c8414bee52 Check for lack of existence of an asset before logging an error. Fixes bug #11526 2010-04-19 08:22:01 -07:00
Graham Knop
2400f19099 Merge branch 'master' into WebGUI8 2010-04-13 07:50:02 -05:00
Colin Kuskie
a598c134c1 Do not pass myself off as a parent. 2010-04-09 15:21:21 -07:00
Colin Kuskie
acded27995 Pass myself along as the asset to check for valid parentage. 2010-04-09 15:04:49 -07:00
Graham Knop
2af4c4de63 clean up WebGUI::Utility imports 2010-03-10 12:59:51 -06:00
Colin Kuskie
5b24340994 sessionify duplicate. Tweak AssetClipboard test to use Moose methods. 2010-01-22 18:36:54 -08:00
Colin Kuskie
d47438d9ae More _properties work, converted into proper methods. 2010-01-14 16:41:23 -08:00
Colin Kuskie
49bd7f5032 newByDynamicClass changed to newById 2009-12-27 19:08:15 -08:00
Graham Knop
c472e0c4b8 add clipboard admin setting 2009-10-28 11:10:31 -05:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Colin Kuskie
e4b99f1d6c Clear cache on assets in trash and clipboard limbo states. fixes bug #11027 2009-09-23 15:39:56 -07:00
Colin Kuskie
6b1fde7038 Log an error if duplicate cannot make a copy of itself. 2009-09-05 09:59:53 -07:00
Colin Kuskie
92815bb75d Change www_delete and www_cut to use either the container, or the parent
as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
2009-08-14 19:43:14 +00:00
Graham Knop
2ab07179bd fixed: Only users in 'Content Managers' can create shortcuts 2009-08-11 16:31:33 +00:00
Colin Kuskie
9a6d5d6eb0 Add CSRF token to manage clipboard screen. 2009-07-17 18:09:49 +00:00
Colin Kuskie
60c74a2a58 Fix pasting from the AdminBar macro due to CSRF requirements. 2009-07-14 23:39:14 +00:00
Colin Kuskie
5e4db3adb4 Provide a framework for CSRF protection, with tests.
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Colin Kuskie
fb38e45343 Mark www_paste as deprecated. 2009-06-19 00:59:10 +00:00
Colin Kuskie
5bcd1a7fc4 Fix poor i18n code, and add notifications about assets that are skipped to the paste progress bar. 2009-06-19 00:04:39 +00:00
Colin Kuskie
db49a54e28 i18n the clipboard pasting progress bar data. 2009-06-18 23:40:41 +00:00
JT Smith
0a004d72a0 spew forth more data! 2009-06-18 22:36:42 +00:00
Colin Kuskie
156025d03c Tell Content/Asset that the paste status method did a redirect. 2009-06-18 20:37:45 +00:00
Colin Kuskie
fb6b201e77 Make it work with debug mode turned on. 2009-06-18 20:16:14 +00:00
Colin Kuskie
8be0a5c734 Add a progress bar for long running ops. First implementation is
with paste.  Also fix bugs with redirecting from the admin bar back to a
page instead of staying in the Asset Manager.
2009-06-18 19:39:35 +00:00
Colin Kuskie
4320d39b1c Pasting from the AdminBar in the AssetManager should leave you in the manager. 2009-06-17 15:38:08 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
99d6796675 Prevent Event, WikiPage and Thread from being pasted places where they don't
belong.  This allows chained method calls to "getMyParent", getParent, getWiki, getCalendar, etc.
to work.
Adds the new canPaste and validParent method to Asset and AssetClipboard.
2009-02-03 04:43:11 +00:00
Colin Kuskie
101e95fd63 Prevent Wiki Pages from being pasted to anywhere but a Wiki Master.
Add provisions for other assets to behave similarly.
2009-01-30 23:49:19 +00:00
Colin Kuskie
b4db7e4391 Prevent redirects from happening when cutting images and files. 2009-01-22 21:22:55 +00:00
Colin Kuskie
1c8dbfe5b4 fix POD related to asset mixin classes, Asset*.pm 2008-11-24 22:22:39 +00:00
Graham Knop
26790fd1dd fix some issues with autocommit 2008-10-23 10:20:53 +00:00
Graham Knop
99a9da626d rfe #640: Refactored autocommit and autocomment
Autocommit assets like CS posts or Calendar Events can now be added before the
parent is committed.  They will go into the same version tag as their parent.
2008-10-22 16:04:10 +00:00
Graham Knop
fe07152853 fixed #8776: duplicate does not duplicate keywords 2008-10-09 14:34:45 +00:00
JT Smith
ef120fb06b Added isVisitor, isAdmin, and isRegistered methods to User object instead
of hard coding checks everywhere with group ids. And updated the code base 
   to match.
2008-09-16 22:32:36 +00:00
Colin Kuskie
24339ba1e2 internationalize word copy in clipboard copies 2008-09-16 20:14:06 +00:00
Colin Kuskie
578d28537a op=manageAssets => op=assetManager 2008-06-12 04:44:15 +00:00
Graham Knop
5b78160079 fixed: Creating a shortcut creates a version tag even with autocommit turned on 2008-06-11 19:17:28 +00:00