OK... I almost found what I need for the first question with __dict__,
but this gives me a bunch values that I don't care about, and I'd have
to remember to append "_SO_val_" to attribute names to get values that
I do care about. Quick example:
class foo(SQLObject):
name = StringCol(length=50)
foo(name="Foo1")
foo.get(1).__dict__
{ ..., '_SO_val_name': 'Foo1', ..., 'id': 1, ... }
So... and I know this might be SQLObject-specific, but... is there any
built-in way to get a dict that would *only* contain {'id' : 1,
'name':'Foo1'} in this example?
I also found a decent-enough example that shows how to set widget
values, thereby answering Q2.here:
http://docs.turbogears.org/1.0/RoughDocs/ModifyWidgetDefault
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---