[Twisted-web] Re: HELP! Formless and default values of a widgets

Little mordaha at gmail.com
Sun May 29 07:22:57 MDT 2005


Sorry, i got an answer in webform.renderForms doc-string :)
 Nevov is da best :)

 On 5/29/05, Little <mordaha at gmail.com> wrote: 
> 
> 
> How can i set default value to a widget, if it must be looked up from a 
> database?
>  
> 
> 
> ---
> class ISomething(annotate.TypedInterface):
> 
> def doSomething(
> self,
> ctx = annotate.Context(),
> foo = annotate.String(*default="this string must be taked from a database 
> at render time" *),
> ):
> """Do Something Really Exciting
> ---
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20050529/65fc822f/attachment-0001.htm


More information about the Twisted-web mailing list