Commit graph

8715 commits

Author SHA1 Message Date
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
030f6bccf0 Force set to process properties in insertion order.
Note, we should look for a way to make this more efficient.
2009-12-18 15:28:10 -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
456eb6f39a Fix POD, condense Asset attributes. A test for tableName in the constructor. 2009-12-17 18:07:47 -08:00
Colin Kuskie
e1be2f9319 Make fieldType a required property option. Check for the presence of either noFormPost or label. 2009-12-17 13:25:27 -08:00
Colin Kuskie
3b31069b1c Make fieldType a required parameter of a Definition Asset property. 2009-12-17 13:00:54 -08:00
Colin Kuskie
c93bdc7950 add get_tables, and refactor out get_all_properties from get_property_list 2009-12-16 15:13:15 -08:00
Colin Kuskie
5b5d4783d0 Make get_property_list API compatible with get_attribute_list, by returning an array. 2009-12-16 13:31:48 -08:00
Colin Kuskie
64fc4a231d Define what the assetName accessor returns. 2009-12-16 13:31:27 -08:00
Colin Kuskie
059bd6761d Uniqueness check on attribute names in get_property_list. Add tests for that, and for get_attributes 2009-12-11 11:56:16 -08:00
Colin Kuskie
334f3414c3 Handle insertion order in multiple classes. This breaks overriding properties in the Definition. 2009-12-11 10:54:23 -08:00
Colin Kuskie
812c2e4c37 Finish up POD for Definition::Role::Object 2009-12-10 19:46:14 -08:00
Colin Kuskie
19b784cd95 Fix get_property_list. Add tests. 2009-12-10 18:54:18 -08:00
Colin Kuskie
0f3260131d Add POD. Use meta->find_attribute_by_name instead of can. Use get_property_list instead of get_all_properties. Change set to ignore bad properties instead of ending the set. 2009-12-10 17:48:23 -08:00
Colin Kuskie
849e8d4037 Change get_property_list from an attribute to a method in Definition::Meta::Class. 2009-12-10 15:54:49 -08:00
Graham Knop
2c7eb7478e change table to tableName in definition 2009-12-07 12:22:33 -06:00
Graham Knop
bb2667206d adding some methods to role, other small cleanups 2009-12-07 12:16:07 -06:00
Graham Knop
c7995b716e Fix applying roles 2009-12-07 12:15:21 -06:00
Graham Knop
fdb72a6d7f small adjustments 2009-12-07 11:29:03 -06:00
Colin Kuskie
b6058e8b11 Began POD for WebGUI::Definition::Asset 2009-12-05 19:06:05 -08:00
Colin Kuskie
129f675f29 POD for WebGUI::Definition::Meta::Property::Asset 2009-12-05 14:23:13 -08:00
Colin Kuskie
841f9418a8 POD for WebGUI::Definition::Meta::Property 2009-12-05 14:22:21 -08:00
Colin Kuskie
d78359c13a POD for Definition::Meta::Class 2009-12-05 13:53:05 -08:00
Colin Kuskie
8491775491 POD for Definition/Meta/Property/Asset.pm
Adopted the style of postfix POD when dealing with Moose specific
code.  It's much easier to read both.
2009-12-05 12:31:02 -08:00
Colin Kuskie
a1957b324a POD for Definition::Meta::Property. 2009-12-05 12:30:34 -08:00
Colin Kuskie
4cc1576796 Fix a POD type in Definition. 2009-12-05 12:30:13 -08:00
Colin Kuskie
80ad86edb2 POD for Definition.pm. Needs more details and design decisions. 2009-12-05 10:00:30 -08:00
Colin Kuskie
0c90162c57 Fix a syntax error, and add a list of newly required modules to testEnvironment.pl 2009-12-02 16:06:06 -08:00
Graham Knop
88aba652c7 moose based definition 2009-12-02 11:37:41 -06:00
Doug Bell
59a562fb35 Merge branch 'fb' into 8 2009-12-01 11:01:27 -06:00
Doug Bell
48773136a8 added some toTemplateVars stuff 2009-11-24 18:01:39 -06:00
Colin Kuskie
f8dea7f582 Revert "Add README file, and base class for AssetHelpers."
This reverts commit dd8674c49b.
2009-11-24 13:12:05 -08:00
Colin Kuskie
dd8674c49b Add README file, and base class for AssetHelpers. 2009-11-24 13:08:48 -08:00
Colin Kuskie
c86ef6ba15 Remove old Cache code for filesystem cache. 2009-11-24 13:07:04 -08:00
Doug Bell
38d395e49f added Tabsets. finished toHtml 2009-11-20 18:12:11 -06:00
Doug Bell
db785fbc02 moving to tabsets and ordered everything 2009-11-17 14:00:07 -06:00
Doug Bell
631f6ad267 more tests and moosification 2009-11-16 18:26:46 -06:00
Doug Bell
7ee8fec611 migrate FormBuilder to Moose. Start tests 2009-11-13 16:27:44 -06: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
81c42d7296 bug fixes 2009-10-23 17:42:36 -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