Commit graph

87 commits

Author SHA1 Message Date
Scott Walters
0edd58f848 add a getProperty to WebGUI::Definition::Role::Object as Asset.pm's www_add wants this for picking out noFormPost data from the property definition in assets. fixes a fatal error when trying to add the Request Tracker and perhaps other assets. 2013-02-17 15:02:16 -05:00
Colin Kuskie
b323f74121 Update copyright notice 2011-12-28 11:30:38 -08:00
Doug Bell
7f47927325 use a default label instead of requiring one 2011-06-23 13:02:27 -05:00
Doug Bell
7f9badc48e and now it works... why? 2011-04-05 18:36:16 -05:00
Doug Bell
5057246f69 namespace autoclean is causing a problem... 2011-04-05 14:48:38 -05:00
Doug Bell
03f64cbf1a allow getFormProperties to be called as a class method 2011-01-31 20:35:25 -06:00
Colin Kuskie
ed74439716 Fixes for Crud POD. 2010-11-11 11:14:05 -08:00
Colin Kuskie
fa63b00e56 Use the correct Property meta class for Crud. 2010-11-10 17:50:02 -08:00
Colin Kuskie
06b2fbc4ab Fix a typo in the package name. 2010-11-04 16:48:04 -07:00
Colin Kuskie
03a6a624da Remove Crud object code from the Definition, for parity with other Definition packages. 2010-10-21 09:45:48 -07:00
Colin Kuskie
6eabacc4fe Remove trailing whitespace, and indented whitespace. 2010-10-21 09:36:13 -07:00
Colin Kuskie
2bd072311d Lay the groundwork for WebGUI::Definition::Crud 2010-10-15 11:04:34 -07:00
Colin Kuskie
068c2d5851 Fix a typo in Role name. 2010-09-24 16:10:20 -07:00
Colin Kuskie
c7a211d5f4 Add a WebGUI::Definition for Shop plugins with a name and table for writing JSON blobs of their data. 2010-09-24 10:47:25 -07:00
Colin Kuskie
a2760b2967 Add missing POD for get_all_settable_list in Definition::Meta::Class 2010-08-28 15:21:09 -07:00
Colin Kuskie
472f5ffbaf Fix another POD typo. get_tables searches properties, not classes now. 2010-08-24 10:43:50 -07:00
Colin Kuskie
4abc827261 Update the POD for property_metaroles. 2010-08-23 22:19:12 -07:00
Colin Kuskie
42784e1b98 Fix copy/paste POD in Settable role. 2010-08-20 07:47:39 -07:00
Colin Kuskie
193223c678 Adding Settable flag for non-properties that should be handled by set/write. 2010-06-04 13:19:03 -07:00
Colin Kuskie
8c759ed7bc Implement keywords differently (successfully) in the Asset class. Extra tests to verify it in Asset.t 2010-06-04 11:33:06 -07:00
Scott Walters
7933e12ab5 get() shouldn't return session; fixes the Asset.t "get, specific properties - no session" test 2010-06-03 20:04:01 -04:00
Scott Walters
483acbc382 Revert "Calls to set() and update() set attributes as well as "properties"."
This reverts commit 57fe0721ab.
2010-05-31 14:39:36 -04:00
Scott Walters
57fe0721ab Calls to set() and update() set attributes as well as "properties".
Fixes t/Keywords.t number 11.
2010-05-27 22:26:37 -04:00
Colin Kuskie
74c6f50bd2 Document init_meta in POD (I hope). 2010-05-21 18:32:43 -07:00
Colin Kuskie
855b59f61d Similar changes as to Definition::Meta::Class in --::Asset 2010-05-07 17:58:00 -07:00
Colin Kuskie
6154044719 when using goto on objects, must restore $self into @_... 2010-05-07 17:56:30 -07:00
Graham Knop
0efa62a73c asset immutability 2010-04-19 18:57:01 -05: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
f4467cb10f Attempt #1 to pass traits through property. 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
ecd31580cf Applying class metaroles before the other roles seems to do the right thing. 2010-03-05 10:28:32 -08:00
Colin Kuskie
053b5a869e Rework get_tables to check each and every property. 2010-03-04 16:08:30 -08:00
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