Examples - lesson 6, repeat code missplaced ?
Laurent Pointal <[email protected]> Thu, 21 Oct 2004 13:30:17 +0200
| Newsgroups | gmane.comp.web.zope.zdp |
|---|---|
| Message-ID | <[email protected]> |
Going via tutorial after mistake about METAL and macros use...
In the example, the code to type is:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
<html>
<h1 tal:content=3D"template/title">title</h1>
<table border=3D"1">
<tr>
<td>
<div tal:repeat=3D"sighting container/sightingsFolder/objectValues"
tal:content=3D"structure sighting">
Sighting goes here
</div>
</td>
</tr>
</table>
</html>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
But lesson says "Notice how each sighting now has a box drawn around=20
it." and the sightings are presented as a whole cell in the table.
Tried following code which render as intended (i think):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
<html>
<h1 tal:content=3D"template/title">title</h1>
<table border=3D"1">
<tr tal:repeat=3D"sighting container/sightingsFolder/objectValues">
<td>
<div tal:content=3D"structure sighting">
Sighting goes here
</div>
</td>
</tr>
</table>
</html>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
A+
Laurent.
--=20
Laurent POINTAL
CNRS-LIMSI d=E9pt. CHM, groupes AMI et PS
Courriel: [email protected] (prof)
[email protected] (perso)
Ouebe: http://www.limsi.fr/Individu/pointal/
T=E9l. 01 69 85 81 06 (prof)
Fax. 01 69 85 80 88
_______________________________________________
ZDP maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zdp