[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - folder_factories.pt:1.3
Chris Withers
chrisw@nipltd.com
Sun, 10 Feb 2002 19:42:06 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv9949/CMFDefault/skins/zpt_generic
Modified Files:
folder_factories.pt
Log Message:
Tweaked folder_factories so that the types listed
are only those where the user has the
'Access contents information' permission on the
Type Information object associated with that
type.
=== CMF/CMFDefault/skins/zpt_generic/folder_factories.pt 1.2 => 1.3 ===
<table class="FormLayout">
<tr>
-<td>
-<table width="100%" class="FormLayout" tal:repeat="item here/allowedContentTypes">
+<td tal:define="allowedContentTypes python:modules['ZTUtils'].LazyFilter(here.allowedContentTypes(),skip='')">
+<table width="100%" class="FormLayout" tal:repeat="item allowedContentTypes">
<tr valign="top">
<td align="left" width="2%" NOWRAP><input type="radio" name="type_name" value="" id="" tal:attributes="value item/getId; id string:cb_${repeat/item/number}"/>
</td>
@@ -27,7 +27,8 @@
<td align="left" class="ListDefinition" tal:content="item/Description"></td>
</tr>
</table>
- </td></tr></table>
+ </td>
+</tr></table>
<table class="FormLayout">
<tr valign="top">