[Twisted-web] nevow.liveevil question (dynamically adding a link with its own handler)

Donovan Preston dp at ulaluma.com
Sun Dec 19 23:34:13 MST 2004


On Dec 19, 2004, at 12:05 PM, David Moore wrote:

*snip*

> def adder(client):
> #    newLink = loaders.stan(tags.a(href="#")["Nothing"])
>     newLink = loaders.stan(tags.a(href="#",
>                 onclick=liveevil.handler(adder))["AddAgain"])
>     client.append('content', newLink)

Leave out the loaders.stan here and it should work. All the client apis 
expect stan. I think I'll consider this a bug; can you add a bug to the 
tracker at http://divmod.org/users/roundup.twistd/nevow/ ?

Thanks, and happy hacking. :-)

dp




More information about the Twisted-web mailing list