[Twisted-web] How to insert an Athena event handler using Stan?
Jean-Paul Calderone
exarkun at divmod.com
Wed Nov 1 11:40:48 CST 2006
On Wed, 1 Nov 2006 19:05:38 +0200, kgi <iacovou at gmail.com> wrote:
>On Wednesday 01 November 2006 18:15, Jean-Paul Calderone wrote:
>> The issue with the handler you showed me is most likely that the handler
>> thinks its first argument is an event, but it is actually a node. There is
>> no way to access the event object right now, but I have been considering
>> just passing it as the next argument.
>
>Darn, I only just now saw that there were more emails in this thread since I
>started to compose my example. That's probably the cause of the problem.
>
>So, is:
>
> function doFoo ( self, node )
>
>currently the canonical prototype for all athena event handlers, without
>exception?
Yes, though this may shortly change to
function doFoo(self, node, event)
(which is completely backwards compatible, of course, due to the magic of
javascript sucking so much).
Jean-Paul
More information about the Twisted-web
mailing list