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

Jesse Vincent jesse at bestpractical.com
Thu Feb 15 16:29:44 EST 2007




On Thu, Feb 15, 2007 at 03:27:06PM -0600, Andrew Sterling Hanenkamp wrote:
> How does that work exactly?

..it may not work yet. in which case, I support your change as an
interim fix ;)

> I'm going to have to delve into the Model stuff more deeply because I
> must not be understanding the table instantiation voodoo. I've assumed
> at this point that the virtual models actually create database tables
> like the traditional models. I seem to recall reading the code, but I
> haven't delved into it in more than a week and have been Java-coding in
> the meantime so my memory is fuzzy.

That's correct.

> What happens to an instatiated table that gets renamed? Is it
> automatically renamed in the database too?

"is" is a strong word. "Should be, but isn't coded yet" is more like it
;)

> 
> Cheers,
> Andrew
> 
> --
> Andrew Sterling Hanenkamp
> Boomer Consulting, Inc.
>  
> 1.785.537.2358 ext. 17
> 1.888.266.6375 ext. 17
> 1.785.537.4545 (fax)
>  
> 610 Humboldt
> Manhattan, KS 66502
>  
> http://www.boomer.com/about/team/andrew-hanenkamp.html
> andrew.hanenkamp at boomer.com
> 
> -----Original Message-----
> From: jifty-devel-bounces at lists.jifty.org
> [mailto:jifty-devel-bounces at lists.jifty.org] On Behalf Of Jesse Vincent
> Sent: Thursday, February 15, 2007 8:56 AM
> To: jifty-devel at lists.jifty.org
> Cc: jifty-commit at lists.jifty.org
> Subject: [jifty-devel] Re: [Jifty-commit] r2792 - in jifty:
> .branches/virtual-models/lib/Jifty/Modelbranches/virtual-models/plugins/
> ModelBuilder/share/web/templates/__jifty/builder/model/fragments/model
> 
> 
> With UUIDs, names don't actually have to be immutable ;)
> 
> On Thu, Feb 15, 2007 at 09:51:11AM -0500, jifty-commit at lists.jifty.org
> wrote:
> > 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">
> > _______________________________________________
> > Jifty-commit mailing list
> > Jifty-commit at lists.jifty.org
> > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
> > 
> 
> --
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> 

-- 


More information about the jifty-devel mailing list