Commit graph

591 commits

Author SHA1 Message Date
Colin Kuskie
f76842f705 Tinkering with url. 2009-12-29 12:05:31 -08:00
Colin Kuskie
d7a31ea901 Try to centralize all the menuTitle defaults in 1 place. 2009-12-28 18:37:53 -08:00
Colin Kuskie
6733595dfc Fix title, menuTitle and url around modifiers. Tests for title, menuTitle.
menuTitle is set to be lazy because it depends on title as a default.
2009-12-28 18:36:19 -08:00
Colin Kuskie
49bd7f5032 newByDynamicClass changed to newById 2009-12-27 19:08:15 -08:00
Colin Kuskie
0fd922daed First work with BUILDARGS. Set defaults for the title,menuTitle. Some tests in t/Asset.t
From this point forward, WebGUI::Asset->new($session, $assetId)
will only return the Root node, and not any other classes.
2009-12-27 19:05:20 -08:00
Colin Kuskie
5574cdf9b0 newByPropertyHashRef. Tolerate an empty properties hashref. Call $className->new.
Allow propeties hashref to be empty, and take class from invocant.
Add a session attribute.
Change around->extraHeadTags to after->extraHeadTags.
2009-12-21 14:46:29 -08:00
Colin Kuskie
8837185bce Set aside Asset.pm's update, so we can fallback to using the one in Definition::Role::Object 2009-12-18 14:58:10 -08:00
Colin Kuskie
ec5f610701 Moose seems to clean this class of anything that it uses. Changed bare calls to croak to Carp::croak. 2009-12-18 13:09:03 -08:00
Colin Kuskie
0e90ad00b8 Set up filtering on title, menuTitle and URL. This is done via "around". 2009-12-18 12:59:01 -08:00
Colin Kuskie
0c4710c4ad code formatting in the properties. 2009-12-18 11:45:54 -08:00
Colin Kuskie
ed0eeb9bc5 Merge branch 'moose-definition' into static_definition. Moved Asset.pm over to the new Definition. 2009-12-18 11:40:33 -08:00
JT Smith
1f522c31a7 fixed properties 2009-10-23 18:17:59 -05:00
JT Smith
908200869e bug fixes 2009-10-23 18:11:37 -05:00
JT Smith
377c49d141 fixed a bunch of bugs...almost working 2009-10-23 11:07:02 -05:00
JT Smith
509c2d64ee fixed set detection 2009-10-22 22:03:37 -05:00
JT Smith
bf15e714d0 removed last filter 2009-10-22 17:20:50 -05:00
JT Smith
3938f9ff0d removed last remnants of old definition 2009-10-22 17:00:45 -05:00
JT Smith
95ecfc0adf added getTables() 2009-10-22 15:03:38 -05:00
JT Smith
57b67ab4da eliminated more definitions 2009-10-22 14:26:09 -05:00
JT Smith
78024c9907 bug fixes 2009-10-22 10:11:12 -05:00
JT Smith
7f474ed7bc removed definition from getEditForm 2009-10-22 09:28:52 -05:00
JT Smith
25931b67d4 compiles now 2009-10-21 18:03:35 -05:00
JT Smith
f7db5d58aa migrating asset.pm 2009-10-21 17:28:46 -05:00
JT Smith
6be6aee8c1 working on asset definition 2009-10-21 11:56:41 -05:00
JT Smith
d16a220628 bug fixes 2009-09-28 17:36:10 -05:00
JT Smith
ebb6134c2d bug fixes 2009-09-25 22:50:59 -05:00
JT Smith
ccff9c7014 Converted all existing uses of cache. 2009-09-25 22:24:33 -05:00
Colin Kuskie
9d438f7266 Fix bad URLs from happening when inheritUrlFromParent is used. Fixes bug #11011 2009-09-22 11:45:06 -07:00
Graham Knop
4fc3e55a3a remove debug logging statements 2009-09-22 11:28:13 -05:00
Colin Kuskie
3ff88580e8 Update POD for getIsa 2009-09-18 13:29:58 -07:00
Colin Kuskie
633f10d1b0 Remove debug code. 2009-09-11 08:25:37 -07:00
Colin Kuskie
2948e68781 Fix 10939, commit with approval breaks on assets with autocommit children, Post, Story, Wiki, Event, etc.
Encapsulate a new method to get a fresh asset from the db.  With tests.
2009-09-08 21:17:41 -07:00
Colin Kuskie
13cceb9c1a Check JSON deserialization, and make Assets do it. 2009-08-26 17:13:00 +00:00
Colin Kuskie
18a52b9aa2 Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect
that can be used by assets, operations and any other modules in WebGUI.
2009-08-26 15:42:18 +00:00
Paul Driver
0a0ee3e6df Fixed semi-rare memory leak in getLineage 2009-08-19 20:32:05 +00:00
Colin Kuskie
1c9908f490 Encapsulate logic for determining if an SSL request has been made.
Refactor core modules to use that.
2009-08-19 18:25:00 +00:00
Graham Knop
4350966866 fixed: Copied assets don't always get URL extensions added 2009-08-19 16:28:38 +00:00
Colin Kuskie
1704618d6b Update the POD for checkView 2009-08-18 01:19:29 +00:00
Colin Kuskie
7a3213b373 Allow autocommit workflows to do apply (save & re-edit). 2009-08-12 17:35:36 +00:00
Graham Knop
686d79d76d small fix to regex for asset class names 2009-08-11 22:30:18 +00:00
Colin Kuskie
0bfc16bf9a Forward porting viewing pending assets in the trash and clipboard. Also
allowing restore of pending assets in the trash.
2009-08-06 17:56:56 +00:00
Colin Kuskie
183431b00a Remove debug code. 2009-07-08 05:18:11 +00:00
Colin Kuskie
b7358fbceb Forward port fix for updating property cache on editSave with autoCommit
so that the asset does not lie about its autocommit status.
2009-07-08 04:29:27 +00:00
Colin Kuskie
02e9354c15 Automatically add a token to any autogenerated form.
Refactor previous commits to take advantage of that.
2009-07-06 17:20:27 +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
f0eaa51d3a If adding an asset is added to another asset with an open version tag, put the
new asset in that version tag, too.
2009-06-23 19:32:40 +00:00
Colin Kuskie
cd0bf74fc7 Add a method that returns the URL for the assetManager. 2009-06-19 18:05:22 +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
801efdbda7 Encapsulate a method to get the list of content prototypes.
Performance improvements for the list retrieval.
2009-06-17 01:57:26 +00:00
Kaleb Murphy
9fbd21ee9e Removed debug line, whups. 2009-06-08 17:03:41 +00:00