Colin Kuskie
9004007b0e
Changing undef to exceptions in Asset.pm
2010-01-21 19:10:56 -08:00
Colin Kuskie
38dedef368
Remove debug from Asset.pm
2010-01-21 11:55:49 -08:00
Colin Kuskie
28fae98edd
Small tweak for rejecting empty string as assetId.
2010-01-20 21:55:55 -08:00
Colin Kuskie
caa1f330b8
Fix newByPropertyHashRef, which is required for class dispatch. Add tests. Fix addChild to use newByPropertyHashRef.
2010-01-20 18:44:48 -08:00
Colin Kuskie
0c3f4a26df
Fix a bug with extraHeadTags wrapper, prevent extraHeadTagsPacked and className from being initialized.
2010-01-15 17:00:02 -08:00
Colin Kuskie
8664d6f6ef
Make revisionDate a standard Moose attribute, instead of a Property.
2010-01-14 09:09:01 -08:00
Colin Kuskie
99083bcb9a
Remove some instances from Asset.pm of storing data in the object hash.
2010-01-14 08:57:17 -08:00
Colin Kuskie
da6bbd1669
Fix setSize to work with Moose attributes. Update the SQL query.
2010-01-13 17:08:34 -08:00
Colin Kuskie
1f44e63af2
Fix infinite loop problems with inheritUrlFromParent
2010-01-13 16:43:06 -08:00
Colin Kuskie
2aefb5d316
Switch from defaultValue to Moose's built-in default
2010-01-13 11:14:52 -08:00
Colin Kuskie
be7cd328cf
Add POD for getIsa. Enforce a repeatable order for testing.
2010-01-12 11:07:25 -08:00
Colin Kuskie
e0089f37f8
write work, no tests
2010-01-09 09:32:10 -08:00
Colin Kuskie
54ed6f7e9e
Incremental change to write method in Asset.pm. Actual code to follow soon.
2010-01-08 09:11:35 -08:00
Colin Kuskie
0627d7adbf
add uiLevel asset attribute. Begin to work on write.
2010-01-04 19:14:53 -08:00
Colin Kuskie
ce3edcf743
Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/;
2010-01-04 15:34:24 -08:00
Colin Kuskie
b72e3a1cd1
getClassById encapculates getting a className from the database, indexed by assetId.
...
Also, work on newById, newByUrl.
2010-01-04 11:33:09 -08:00
Colin Kuskie
fde81306c6
Asset work related to class dispatch.
2010-01-04 10:59:48 -08:00
Colin Kuskie
22ff856027
add revisionDate attribute
2010-01-01 19:31:24 -08:00
Colin Kuskie
9ff9f31f14
Add more asset data attributes.
2010-01-01 09:32:13 -08:00
Colin Kuskie
38144bd58f
Add assetId attribute to Asset.pm, and tests.
2009-12-30 08:35:21 -08:00
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
Colin Kuskie
27a7c099ba
fix: getIsa returns undef for pending assets.
...
Add a new option flag to getIsa, called returnAll. If returnAll = 1, then
assets are returned regardless of status. Otherwise, getIsa will only
return committed assets.
2009-12-08 17:22:59 -08:00
Colin Kuskie
f96c2f7af1
Change assetManager search to work like assetManager manage. Fixes bug #11272
...
Force all actions to be routed through asset methods with Csrf and
permission checks.
2009-11-24 22:53:20 -08:00
Colin Kuskie
da6743c211
Add the code to actually generate the hexadecimal assetId for templates.
2009-11-24 22:53:12 -08:00
Colin Kuskie
74f7038ec1
Fix a bad comment.
2009-11-02 09:05:36 -08:00
Colin Kuskie
edcbd95250
Have getIsa throw exceptions, instead of croaking.
2009-10-27 13:49:13 -07: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
Colin Kuskie
5bd5bb48a9
Central cache access for Assets to handle SSL caching. Fixes bug #11131 .
2009-10-20 15:15:38 -07:00