[Twisted-web] How to insert an Athena event handler using Stan?

Phil Christensen phil at bubblehouse.org
Tue Oct 31 09:44:02 CST 2006

On Oct 31, 2006, at 10:25 AM, Jean-Paul Calderone wrote:
>> On Tuesday 31 October 2006 15:12, Tristan Seligmann wrote:
>> Results in:
>> <input type="text" class="sw-input" onkeypress="return
>> Nevow.Athena.Widget.handleEvent(this, &quot;onkeypress&quot;,
>> &quot;keyPressed&quot;);" />
>> Should I be wrapping it in anything else (T.raw()?).
> Are you sure this is causing a problem?  It looks correct to me. :)
> <tag onkeypress="return foo("bar")"> would seriously confuse an  
> html parser.

I am seeing the same behavior in my app, where I was working on  
implementing a feature similar to Tristan's. I'm seeing:

<input onkeypress="return Nevow.Athena.Widget.handleEvent(this,  
&quot;onkeypress&quot;, &quot;parse&quot;);" type="text" size="80" />

I updated before trying it, so this is from SVN r9862.


More information about the Twisted-web mailing list