Commit graph

639 commits

Author SHA1 Message Date
Colin Kuskie
4895b14383 hm, actually need that WebGUI::Asset::Shortcut thing 2010-04-09 15:04:34 -07:00
Colin Kuskie
953df9d6a9 Remove a bunch of circular dependencies, based on using WebGUI::Asset::Template 2010-04-07 15:03:48 -07:00
Colin Kuskie
f01abc42ff Remove really old code from the old Rss From Parent asset. 2010-04-07 14:48:04 -07:00
Colin Kuskie
88ec09d279 rework how validParent works, and where it is checked. Add an explicit check for it in addChild, and remove a bunch of overridden addChild methods. 2010-03-19 14:31:49 -07:00
Colin Kuskie
1363a8627a Serialize _to_ json in write. 2010-03-18 15:05:19 -07:00
Colin Kuskie
b41338cef5 Pull types into its own file. 2010-03-18 14:46:13 -07:00
Colin Kuskie
b0cad3b155 Remove get and update overrides in Asset::Role::Comments 2010-03-18 09:10:45 -07:00
Colin Kuskie
2997471b5f fix assetName calls for Asset and Wobject. 2010-03-12 08:55:07 -08:00
Graham Knop
45ca61b7c2 more import cleanups 2010-03-10 12:59:52 -06:00
Colin Kuskie
a3614f5211 Move uiLevel from a define to a property so it can be inherited. 2010-03-09 12:58:55 -08:00
Colin Kuskie
ed58eba697 More instanciator cleanup in Asset.pm 2010-03-03 19:48:32 -08:00
Colin Kuskie
f88c18ee50 Fix the write method to iterate over each property to get the table names instead of looking in the class metaproperties. 2010-03-03 15:45:47 -08:00
Colin Kuskie
0a0b6557e2 Eval and error handling for processTemplate. 2010-03-03 11:09:50 -08:00
Colin Kuskie
122bd26afa Add keywords accessor for looking up Asset keywords. 2010-03-03 11:03:35 -08:00
Colin Kuskie
117c7897bb Closer to Roles. Remove also from WebGUI::Definition, and put use Moose in all Asset classes. 2010-02-26 12:01:25 -08:00
Graham Knop
20ee527dbd change aspect to define 2010-02-17 16:31:10 -06:00
Colin Kuskie
74ccbef83f Update POD in Asset.pm for ->new 2010-02-12 11:01:32 -08:00
Colin Kuskie
63f829ee96 Fix processTemplate for new instanciators and exception handling. 2010-02-11 13:49:58 -08:00
Colin Kuskie
d1572c4257 Make sure that all builder methods that use session sare set to be lazy. 2010-02-05 15:41:01 -08:00
Colin Kuskie
95b93fb5dd Add triggers to groupIdEdit, groupIdView and ownerUserId so that File.pm can override them to set storage location privileges. 2010-02-03 18:33:04 -08:00
Colin Kuskie
006570a05a newByUrl should throw an exception. Test it. 2010-01-29 17:35:19 -08:00
Colin Kuskie
d66b3b891b Make revisedBy a property, so it gets written on ->update. Change addRev not to write to the db when it does not need to. Update tests to verify that addRev does the right thing for tagId and revisedBy. 2010-01-25 22:49:22 -08:00
Colin Kuskie
9b3e21c123 Attribute => aspect change. 2010-01-25 19:21:44 -08:00
Colin Kuskie
886a896f27 Note in POD which methods throw exceptions, and why. 2010-01-22 15:15:59 -08:00
Colin Kuskie
e5affbd0c2 Add tagId property, fix cloneFromDb. Fix several tests. 2010-01-22 11:42:05 -08:00
Colin Kuskie
5c3a3d440b Fix inheritUrlFromParent, using trigger instead of around. 2010-01-22 11:07:46 -08:00
Colin Kuskie
6573884db6 Add exceptions to newPending. Change it to use newById instead of new. Tweak some messages and tests. 2010-01-22 08:40:49 -08:00
Colin Kuskie
04ed78e8f1 Remove use of getAttribute from Asset.pm. Tweak a few tests. 2010-01-21 21:06:58 -08:00
Colin Kuskie
143e2e0d7b pull permission tests out of Asset.t. Fix getName. 2010-01-21 20:45:58 -08:00
Colin Kuskie
52d5883b77 More exceptions and tests for Asset.pm 2010-01-21 19:52:48 -08:00
Colin Kuskie
9004007b0e Changing undef to exceptions in Asset.pm 2010-01-21 19:10:56 -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
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