[Twisted-Python] dealing with woven templates.

Philippe Lafoucrière lafou at wanadoo.fr
Wed Jul 16 13:18:00 EDT 2003

Hi all,

I have some (noob) problems with woven. I tried to create a standard
template, with 1 picture. I modified the template from picturepile. Here
is what I have :

      <title model="title" view="Text">Directory listing</title>
      <img src="pictures/TwistedLogoFull.png" alt="Twisted logo"
border="0" />
      <h1 model="title" view="Text">This is the title</h1>
      <ul model="directory" view="List">
        <li pattern="listItem"><a view="Anchor"
        <li pattern="emptyList">This directory is empty.</li>

This works since /pictures is in the templates directory. Moreover, I
can see where the items would be, and their link (#).

But I get no image at all while rendering with woven and the
picturepile.py exemple. On the otherhand, all items begin with

This is tedious since web designers should see something similar to the
final result.

By the way, I got this error :

exceptions.AttributeError: 'NoneType' object has no attribute

because the app couldn't find the template file. This message isn't
explicit enough I think :(

thx for your help

More information about the Twisted-Python mailing list