[Twisted-web] problems with data_XXX in formless templates
tv at twistedmatrix.com
Thu Feb 24 00:41:07 MST 2005
Federico Di Gregorio wrote:
> Il giorno mer, 23-02-2005 alle 06:51 -0800, Donovan Preston ha scritto:
>>Well, somehow an instance of MethodBinding is being stuck on the
>>context as the IData. I'm pretty sure Nevow won't do this by itself. So
>>your job is to figure out why this is happening. Do other data_ methods
>>in the page work?
> I don't understand exactly what you're saying. You mean that my code is
> sticking the MethodBinding instance on the context? Anyway, I wrote a
> very simple tac that exposes the problem (to make it easier understand
> what's happening.) Maybe you'd like to have a look at it. The tarball
> with the tac and two xml templates is just 1.2Kb so I am attaching it to
> this email. :)
It all seems to relate to using n:data inside the webform.renderForms
pattern. Don't know what the real problem with that is, or how to fix
it. If you don't get a more helpful reply from someone else within a
few days, please file a bug report:
A workaround is to do the data and render outside of the template.
Slots are one possibility, see attachment.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1308 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20050224/75bc71a8/workaround.bin
More information about the Twisted-web