Commit graph

8763 commits

Author SHA1 Message Date
Colin Kuskie
b2db9d491b Change getProperty to getFormProperties, which returns the form element of the requested property with i18n and sub ref evaluated. 2010-01-21 16:41:53 -08:00
Colin Kuskie
28fae98edd Small tweak for rejecting empty string as assetId. 2010-01-20 21:55:55 -08:00
Colin Kuskie
0ef94945a7 Dirty conversion of Navigation to Moose. 2010-01-20 21:40:57 -08:00
Colin Kuskie
df9e058f89 Dirty conversion of Layout to Moose. 2010-01-20 20:57:52 -08:00
Colin Kuskie
d9c340f1b5 Convert Folder to Moose. 2010-01-20 20:48:16 -08:00
Colin Kuskie
bfedba82dd Convert VersionTag to use newById instead of new, since new cannot dispatch to any class but the one that invoked it. 2010-01-20 20:15:46 -08:00
Colin Kuskie
fcd68c93ac Change autoGenerate=>0 to noFormPost=>0 in Product. 2010-01-20 20:15:25 -08:00
Colin Kuskie
a00d173fe6 Rough conversion of Shortcut to Moose, so Asset cleanup works. Fix a bug in getLineage. Update tests for get_tables. 2010-01-20 19:12:04 -08:00
Colin Kuskie
3a425f29bc Change the name of the sku accessor for shipsSeparately to isShippingSeparately, since it clashes with a property. Add tests. t/Asset/Sku.t passes. 2010-01-20 18:47:35 -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
36d1636f06 Comment out troublesome code, and provide a default sub for the Product. 2010-01-19 20:32:10 -08:00
Colin Kuskie
4e65824bdd Fix a typo in Wobject. 2010-01-19 19:24:34 -08:00
Colin Kuskie
b979628f80 Update Product to use Moose. 2010-01-19 19:23:41 -08:00
Colin Kuskie
16d9076ecd Convert Sku and Shelf to Moose. 2010-01-19 13:16:54 -08:00
Colin Kuskie
c7979a137f Change defaultValue to default in Snippet.pm 2010-01-19 13:14:27 -08:00
Colin Kuskie
779f037a33 Change defaultValue to default in Wobject.pm 2010-01-19 13:13:48 -08:00
Colin Kuskie
41b741d41b Convert Snippet to moose accessors. 2010-01-19 11:34:23 -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
b7761ce50e Move getParent over to using Moose attributes. 2010-01-15 16:59:34 -08:00
Colin Kuskie
8b52d3ff76 rework addRevision to work with Moose. 2010-01-15 16:59:01 -08:00
Colin Kuskie
d47438d9ae More _properties work, converted into proper methods. 2010-01-14 16:41:23 -08:00
Colin Kuskie
1331bf9828 Remove more instances of direct hash access for properties. 2010-01-14 10:31:38 -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
1ce5e4ebab Give SQL.pm a quote_identifier wrapper. 2010-01-13 16:42:29 -08:00
Colin Kuskie
86b5157e4d Hand backport a patch from master. Do not cache the parent when adding a child. 2010-01-13 11:16:16 -08:00
Colin Kuskie
bf097ac337 Since assets are always created with defaults now, no need to introspect. Also, remove white space in "empty" lines. 2010-01-13 11:15:25 -08:00
Colin Kuskie
2aefb5d316 Switch from defaultValue to Moose's built-in default 2010-01-13 11:14:52 -08:00
Colin Kuskie
a8f251a5f2 Sessionize addRevision 2010-01-13 10:31:22 -08:00
Colin Kuskie
22823339ab Sessionize addChild 2010-01-13 10:30:29 -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
ed752a25c3 Make WebGUI::Definition property methods work the same way that Moose attribute methods do.
Specifically, get_property_list does not return property names from all classes.  Add a new
method to do that.  Refactor and reuse lots of code.
2010-01-08 09:04:27 -08:00
Colin Kuskie
49992dddb9 move get_tables back into Meta/Class. Refactor it to use get_all_class_metas instead of iterating over all the properties. 2010-01-07 18:25:45 -08:00
Colin Kuskie
15c5318a27 Encapsulate a method to return all the meta objects for classes used by an object.
Refactor the code out of get_all_properties into its own method.  This will be
used by the write method in Asset.pm, at least.
2010-01-07 18:15:40 -08:00
Colin Kuskie
0627d7adbf add uiLevel asset attribute. Begin to work on write. 2010-01-04 19:14:53 -08:00
Colin Kuskie
bfccc1fa6f Fix syntax errors in Snippet definition. 2010-01-04 19:14:32 -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
1af2acbc9d Conversion from static to Moose for Snippet. 2010-01-04 10:59:31 -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