[Twisted-Python] t.w.woven.widgets patch

Philippe Lafoucrière lafou at wanadoo.fr
Mon Jul 21 08:13:06 MDT 2003


Hi all,

I am really surprised by the way the Anchor widget works. It would be
really helpful to have a template similar to generated output.
With that kind of template :

****
<ul model="directory" view="List">
  <li pattern="listItem"><a href="#" view="Anchor">ListItem</a></li>
  <li pattern="emptyList">No files</li>
</ul>
****

the output is currently :

****
ListItemfile1
ListItemfile2
ListItemfile3
****
instead of 

****
file1
file2
file3
****

Here is a patch that corrects this behaviour

--
Gravis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_widgets.py
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030721/7a56cc0c/attachment-0002.bin>


More information about the Twisted-Python mailing list