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

David Moore djm at software.net.nz
Mon Dec 20 00:45:24 MST 2004


On Sun, 19 Dec 2004 22:34:13 -0800
Donovan Preston <dp at ulaluma.com> wrote:

> 
> 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
> 

Thanks for the reply, but removing loaders.stan, doesn't make any
difference.  I still get exceptions.KeyError: 'Interface
nevow.inevow.IData was not remembered.'

issue 145 created


Thanks! David.



More information about the Twisted-web mailing list