Ian Wilson schrieb:
> Hello Hello,
> 
> I am not quite sure what usage you were looking for but this is pretty
> neato.  I pasted it so it was more readable even tho that might be bad
> mailing list etiquitte.
> 
> A few things to note.  Usually you do item   = ForeignKey('Item')
> instead of item_id   = ForeignKey('Item') because that is an item
> object not actually an id.  SQLObject creates an id in the table
> called item_id but that is all behind the scenes.  I could be wrong if
> you are overriding the slqobject default naming scheme but that is the
> usual way of doing things.
> 
> http://paste.turbogears.org/paste/918

You could make this a little more generic by using classmethods instead of
staticmethods. Then you can factor out the functions to a MixIn class and and
reuse them.

http://paste.turbogears.org/paste/919

Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to