Commit graph

55 commits

Author SHA1 Message Date
Colin Kuskie
4d3d031d78 remove copy/paste variable names. 2010-03-03 15:45:46 -08:00
Graham Knop
d7b0d93ad8 Apply Definition roles properly to eliminate warnings 2010-03-03 13:49:08 -06:00
Graham Knop
38e2e091dc apply correct roles/metaroles to roles 2010-03-02 18:31:16 -06:00
Graham Knop
a5f54a7910 mostly working definition roles 2010-03-02 00:49:09 -06:00
Graham Knop
12fcdf201f almost working using metaclass roles 2010-02-26 16:55:57 -06:00
Graham Knop
a2f0cbe9ba fix more things for metaclass roles 2010-02-26 16:55:35 -06:00
Graham Knop
13b753850f start of conversion to metaclass roles 2010-02-26 16:54:03 -06:00
Graham Knop
20ee527dbd change aspect to define 2010-02-17 16:31:10 -06:00
Graham Knop
57484beb66 asset role should include generic object role, not itself 2010-02-17 16:13:38 -06:00
Colin Kuskie
d6cbcf4604 getFormProperties now also passes i18n arguments to sprintf if requested. 2010-02-12 11:33:23 -08:00
Colin Kuskie
3d733a1a93 Add subtext to list of form fields that will do i18n lookups. 2010-02-11 19:15:01 -08:00
Colin Kuskie
3b70d64b82 rework WebGUI::Definition::Role::Object when passing sub refs for form property values. 2010-02-09 19:28:45 -08:00
Colin Kuskie
60375516ab More attribute => aspect changes. Add get_all_attributes_list, which returns a list of the names of all attributes. 2010-01-25 19:21:00 -08:00
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
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
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
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
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
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
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
7b0fcd9009 Merge branch 'static_definition' of github.com:plainblack/webgui into static_definition 2009-10-22 15:04:00 -05:00
JT Smith
95ecfc0adf added getTables() 2009-10-22 15:03:38 -05:00
Graham Knop
d26c3c2ed3 enforce some restrictions for assets 2009-10-22 10:21:10 -05:00