[Jifty-commit] r2792 - in jifty: . branches/virtual-models/lib/Jifty/Model branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Feb 15 09:51:11 EST 2007


Author: sterling
Date: Thu Feb 15 09:51:10 2007
New Revision: 2792

Modified:
   jifty/   (props changed)
   jifty/branches/virtual-models/lib/Jifty/Model/ModelClass.pm
   jifty/branches/virtual-models/lib/Jifty/Model/ModelClassColumn.pm
   jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/column/update
   jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model/update

Log:
 r2769 at riddle:  andrew | 2007-02-01 10:30:17 -0600
 Made names immutable.


Modified: jifty/branches/virtual-models/lib/Jifty/Model/ModelClass.pm
==============================================================================
--- jifty/branches/virtual-models/lib/Jifty/Model/ModelClass.pm	(original)
+++ jifty/branches/virtual-models/lib/Jifty/Model/ModelClass.pm	Thu Feb 15 09:51:10 2007
@@ -28,7 +28,8 @@
         type is 'text',
         label is 'Model name',
         is distinct,
-        is mandatory;
+        is mandatory,
+        is immutable;
     column description => 
         type is 'text',
         label is 'Description',

Modified: jifty/branches/virtual-models/lib/Jifty/Model/ModelClassColumn.pm
==============================================================================
--- jifty/branches/virtual-models/lib/Jifty/Model/ModelClassColumn.pm	(original)
+++ jifty/branches/virtual-models/lib/Jifty/Model/ModelClassColumn.pm	Thu Feb 15 09:51:10 2007
@@ -29,7 +29,8 @@
     column name => 
         type is 'text',
         label is 'Column name',
-        is mandatory;
+        is mandatory,
+        is immutable;
 
     column model_class => 
         refers_to Jifty::Model::ModelClass,

Modified: jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/column/update
==============================================================================
--- jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/column/update	(original)
+++ jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/column/update	Thu Feb 15 09:51:10 2007
@@ -21,7 +21,7 @@
 
 %# XXX See ./new for comments on field order.
 
-<% $update->form_value('name') %>
+<% $update->form_field('name') %>
 <% $update->form_field('label') %>
 <% $update->form_field('storage_type', mandatory => 1) %>
 <% $update->form_field('default_value') %>

Modified: jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model/update
==============================================================================
--- jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model/update	(original)
+++ jifty/branches/virtual-models/plugins/ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model/update	Thu Feb 15 09:51:10 2007
@@ -36,7 +36,7 @@
 % }
 </div>
 
-<% $update->form_value('name') %>
+<% $update->form_field('name') %>
 <% $update->form_field('description') %>
 
 <div class="master-detail">


More information about the Jifty-commit mailing list