[Zope-CVS] CVS: Products/CompositePage/manual - body.pt:1.8

Shane Hathaway shane at zope.com
Fri Mar 5 16:41:36 EST 2004

Update of /cvs-repository/Products/CompositePage/manual
In directory cvs.zope.org:/tmp/cvs-serv9514/manual

Modified Files:
Log Message:
Added a new page template expression type, "slot:".

"slot:" provides a concise way to declare composite slots in page templates.
It is designed to replace metal:define-slot.

Also augmented interfaces and fixed a race condition in the slot
generator.  If two people used the _v_used_names mechanism
simultaneously, the results would be unpredictable.  Now, the tracking
is done on the Composite instead.

=== Products/CompositePage/manual/body.pt 1.7 => 1.8 ===
--- Products/CompositePage/manual/body.pt:1.7	Wed Mar  3 11:06:21 2004
+++ Products/CompositePage/manual/body.pt	Fri Mar  5 16:41:05 2004
@@ -1,8 +1,12 @@
+<em tal:condition="not: options/manifest">
+No slots are defined.
 <form name="manual_composite_ui">
 <table border="0" cellspacing="0" cellpadding="0" width="80%">
-<tbody tal:repeat="slot_info options/slot_data">
+<tbody tal:repeat="slot_info options/manifest">
 <td class="slot_top">
   <span tal:content="slot_info/title">Headliner story</span>

More information about the Zope-CVS mailing list