[Twisted-web] Re: HELP! Formless and default values of a widgets
daverz at gmail.com
Sun May 29 08:29:18 MDT 2005
On 5/29/05, Little <mordaha at gmail.com> wrote:
> Sorry, i got an answer in webform.renderForms doc-string :)
> Nevov is da best :)
What was the answer?
I use something like this:
def setDefaults(self, ctx, data):
formDefaults = ctx.locate(iformless.IFormDefaults)
defaults = formDefaults.getAllDefaults(myFormName)
for key, value in data: # my data is a sequence of tuples
defaults[key] = value
Which seems pretty clunky. What happened to MVC?
More information about the Twisted-web