[Twisted-Python] woven bug?
Federico Di Gregorio
fog at initd.org
Mon Oct 20 09:42:42 MDT 2003
hi,
i have a problem with woven loosing a <div> tag where, IMHO, it should
not. note the big IMHO, i still don't know woven that well. right now I
have a template that simply does:
<div view="menu" />
and my Page subclass has a method for that view;
def wvfactory_menu(self, request, node, model):
return page.Page(templateFile="menu.xhtml",
templateDirectory=self.templateDirectory)
if the menu.xhtml file has the following structure:
<div id="menu">
...
</div>
the <div id="menu"> tag gets lost. the external div is correctly
replaced and has an id like "woven_id_xxxxxxxxxx" but the innermost div
(the one with id "menu") is not there anymore. right now i've found a
dirty hack:
<div id="menu">
<div id="menu">
...
</div>
</div>
but, obviously, i don't like at all. is that a woven bug or a
misinterpretation of how the node replacement works? is the outer tag of
a (sub)page always removed? and why?
ciao,
federico
--
Federico Di Gregorio
Debian GNU/Linux Developer fog at debian.org
INIT.D Developer fog at initd.org
Nessuno dice che non si possa sognare in dettaglio, essere realistici
e magari realizzarlo pure, il sogno. -- <dani>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa parte del messaggio รจ firmata
URL: </pipermail/twisted-python/attachments/20031020/d742c290/attachment.sig>
More information about the Twisted-Python
mailing list