[Twisted-web] Nevow, annotate.MethodBinding, JavaScript integration

Suha Onay suhaonay at gmail.com
Thu May 17 08:49:33 EDT 2007


Hi,

I want to do smth in javascript when the combo changes.
How can I add an onchange action to my combo?
Thanks...

    def bind_xxx(self, ctx):
        desc =3D 'aaa'
        return annotate.MethodBinding(
            'xxx',
            annotate.Method(
                arguments=3D[
                    annotate.Argument('ctx', annotate.Context()),
                    annotate.Argument('fisturu', annotate.Choice(
self.getComboInput, stringify=3Dlambda x:self.combos[x], label=3D'Xyz')),
                ],
                label=3D'eee:',
            ),
            action=3D'OK'
        )

    def xxx(self, ctx, **args):
        ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20070517/c0=
4ee09a/attachment.htm


More information about the Twisted-web mailing list