[Twisted-web] freeform: Getting default field values for autocallable methods

Gavrie Philipson twisted-web@twistedmatrix.com
Thu, 01 Jan 2004 19:32:01 +0200


Chris Armstrong wrote:
> On Thu, Jan 01, 2004 at 05:15:42PM +0200, Gavrie Philipson wrote:
...
>>However, when using an autocallable method which takes parameters, there 
>>seems to be no way to supply default values for the fields.
> 
> 
> fd = freeform.IFormDefaults(ctx.locate(IRequest).getSession())
> fd.setDefault('setData.pageData', 'default text')
> 
> where setData is the autocallable's name, and pageData is the parameter.

This looks like what I need.

Thanks,

-- Gavrie.