[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_generic -
index_html.py:1.2
Yvo Schubbe
y.2004_ at wcm-solutions.de
Wed Jul 21 10:20:14 EDT 2004
Update of /cvs-repository/Products/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv11733/CMFDefault/skins/zpt_generic
Modified Files:
index_html.py
Log Message:
- fixed anonymous access
=== Products/CMFDefault/skins/zpt_generic/index_html.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_generic/index_html.py:1.1 Tue Jul 6 18:19:22 2004
+++ Products/CMFDefault/skins/zpt_generic/index_html.py Wed Jul 21 10:20:13 2004
@@ -1,14 +1,16 @@
##parameters=b_start=0
##
from ZTUtils import Batch
+from ZTUtils import LazyFilter
options = {}
options['has_local'] = 'local_pt' in context.objectIds()
key, reverse = context.getDefaultSorting()
-items = context.listFolderContents()
+items = context.contentValues()
items = sequence.sort( items, ((key, 'cmp', reverse and 'desc' or 'asc'),) )
+items = LazyFilter(items, skip='View')
batch_obj = Batch(items, 25, b_start, orphan=0)
listItemInfos = context.getBatchItemInfos(batch_obj)
target = context.getActionInfo('object/view')['url']
More information about the CMF-checkins
mailing list