[Twisted-web] bind_*
Andy Gayton
andy at thecablelounge.com
Sun Oct 16 18:28:33 MDT 2005
Garanin Michael wrote:
>
> Hello!
> Sorry i am nevow-newcomer.
> I use nevow 0.5.0 and my page has method:
>
> def bind_doSomething(self, ctx):
> return [('param',annotate.Integer()) ]
>
>
> It's work and i see labels "Do Something" and "Call" in my browser.
> My question: how i can change labels?
args = [formless.Argument('param', annotate.Integer()),]
return formless.MethodBinding('doSomething',
formless.Method(arguments=args), action='Custom Label')
Andy.
More information about the Twisted-web
mailing list