[Twisted-web] Don't use the context?

Jean-Paul Calderone exarkun at divmod.com
Thu Oct 12 19:06:56 CDT 2006


On Fri, 13 Oct 2006 09:00:54 +1000, Jonathan Lange <jml at mumak.net> wrote:
>On 10/12/06, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>>On Thu, 12 Oct 2006 22:43:28 +1000, Jonathan Lange <jml at mumak.net> wrote:
>> >On 10/12/06, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>> >>On Thu, 12 Oct 2006 17:45:40 +1000, Jonathan Lange <jml at mumak.net> wrote:
>> >> >* How does nevow:data stuff work in a world without context?
>> >>
>> >>I don't know.  It doesn't so far.
>> >
>> >Will it?
>>
>>Don't know that, either.  Convince me. :)
>
>Allow me to question your answer with a question: How does one render
>a sequence without nevow:data directives?
>
><ul n:data="foo" n:render="sequence">
><li n:pattern="item">
><n:invisible n:data="name" n:render="string"/>
></li>
></ul>

Perhaps like this:

    <n:invisible n:render="foo_sequence" />

Combined with this:

    def foo_sequence(self, req, tag):
        return Sequence(foo)


Jean-Paul



More information about the Twisted-web mailing list