Hi all.... Thanks again for all the help, I'm starting to get the hang of things I think.
Right now I'm trying to figure out how to use widgets to build a single form that can be used both for create/update. I've looked at http://docs.turbogears.org/1.0/CRUDTemplate but it doesn't appear to use widgets so it wasn't much help. I ran across this mailing list post from last year: http://groups.google.com/group/turbogears/browse_frm/thread/5a4dd628be79bd66/258a4a614b6a8044?lnk=gst&q=widgets+for+CRUD&rnum=38&hl=en#258a4a614b6a8044 which basically suggests passing a dict containing the form values to the form's insert method in the template, like this: ${form.insert(data)} First question: Is there no way to use a SQLObject instead of a dict? I mean, it seems really silly to define a model in a nice structured way, then have to keep converting it to and from lists or dicts in order to use any kind of widget. That's a lot of extra code to write in each model, IMHO. Second question: I've tried this using a customerForm class that inherits from TableForm and get: "AttributeError: 'customerForm' object has no attribute 'insert'." Sure enough, looking at the source, I don't see any method in the inheritance hierarchy for widgets.Form with this name, although I see some methods that have names that imply they might do what I want (adjust_value for example), but they all use keyword style argument lists (**params), so I can't tell what I'm supposed to pass to them... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

