[Twisted-web] Re: Page object design: wrapping a dictionary containing data

Jason Mobarak jason.mobarak at gmail.com
Mon Jan 24 14:39:00 MST 2005


On Mon, 24 Jan 2005 07:22:00 -0800, Donovan Preston <dp at ulaluma.com> wrote:
> rend.Page(
>         dict(one=1, two=2),
>         docFactory=loaders.xmlstr(
>                 """<html xmlns:n="http://nevow.com/ns/nevow/0.1">
>         <div n:render="string" n:data="one" />
>         <span n:render="string" n:data="two" />
> </html>""")).renderSynchronously()
> 
> <html><div>1</div><span>2</span></html>
> 

I might be misunderstanding something... but what's the point of
having http://nevow.com/ns/nevow/0.[123] for the xmlns declaration if
that URL just 404s?



More information about the Twisted-web mailing list