[Twisted-web] nevow.liveevil question (dynamically adding a
link with its own handler)
djm at software.net.nz
Tue Dec 21 11:10:13 MST 2004
On Mon, 20 Dec 2004 20:45:24 +1300
David Moore <djm at software.net.nz> wrote:
> 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.
I haven't had any luck trying to get this to work. Does anyone else do
anything similar (dynamically created pages) with LivePage/LiveEvil?
Is there any open source code I can look at beyond Chatola?
Have a Happy Christmas!
More information about the Twisted-web