On Mar 22, 2007, at 10:16 PM, tamara6 wrote:
>
> OK, I've discovered that the checkbox didn't work because it didn't
> have the exact same name as the field in the database.
>
> If I did want to use one name in my form and another in the database,
> would there be a simple way to do that?
You could sedn the form a dict keyed by the names you have in the
form. Something like:
d = {
'a_field' : obj.other_field,
...
}
and then:
form.display(d)
Alberto
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---