Commit graph

36 commits

Author SHA1 Message Date
Graham Knop
a95ef168cc remove use of FindBin in tests 2010-09-01 14:05:53 -05:00
Colin Kuskie
d3f139d43c Test WebGUI::Types 2010-03-18 14:46:32 -07:00
Colin Kuskie
e076ecbfe2 Add tests for traits and coercion for JSON in the db. 2010-03-18 09:00:21 -07:00
Colin Kuskie
570eea7d91 Add test for passing through traits. 2010-03-11 13:42:38 -08: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
3c790d9ce5 Add Role presence tests. 2010-03-05 08:51:16 -08:00
Graham Knop
12fcdf201f almost working using metaclass roles 2010-02-26 16:55:57 -06:00
Graham Knop
20ee527dbd change aspect to define 2010-02-17 16:31:10 -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
3b70d64b82 rework WebGUI::Definition::Role::Object when passing sub refs for form property values. 2010-02-09 19:28:45 -08:00
Colin Kuskie
d4f31870a3 change the name attribute to aspect to denote asset level static attributes like tableName, et. al. 2010-01-25 19:16:05 -08:00
Colin Kuskie
be8f582ac7 Add tests for getFormProperties 2010-01-21 18:08:41 -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
cb9510d9b8 Break Definition.t into Defintion.t and Definition/Asset.t 2009-12-18 14:57:12 -08:00
Colin Kuskie
c50e2f9bcb Fix tests. 2009-12-18 13:08:53 -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
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
f997981d73 More tests for tableName, getProperty. 2009-12-16 17:48:24 -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
8c358fa229 Remove Dumper. 2009-12-11 13:28:48 -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
83e8d7ca12 More tests. 2009-12-10 19:49:28 -08:00
Colin Kuskie
19b784cd95 Fix get_property_list. Add tests. 2009-12-10 18:54:18 -08:00
Colin Kuskie
b8781044f3 Update tests. table -> tableName. Add comments to tests. 2009-12-10 17:49:43 -08:00
Graham Knop
c2fca8e178 some additional definition testing 2009-12-07 12:23:03 -06:00
Graham Knop
88aba652c7 moose based definition 2009-12-02 11:37:41 -06:00
Graham Knop
9b31593dae return undef for ->get() with invalid property 2009-10-22 10:20:34 -05:00
Graham Knop
1bd76f9442 use methods for generating subs in definition 2009-10-19 10:22:50 -05:00
Graham Knop
cdbc94cdef replace class's ISA instead of prepending to it 2009-10-19 05:05:02 -05:00
Graham Knop
d852c58a90 inject methods into a superclass instead of the class itself 2009-10-14 17:06:17 -05:00
Graham Knop
34182a39ee first rev of new definition class 2009-10-12 05:41:04 -05:00