关于3.1下分页的问题

0 views
Skip to first unread message

eb汽车

unread,
May 4, 2008, 10:10:07 AM5/4/08
to CZUG-Plone技术讨论
getFolderContents.py中:
b_size="**",需要显示的条目数,默认100

在3.1下不好使,应该怎么解决这个问题???

if batch:
from Products.CMFPlone import Batch
b_start = context.REQUEST.get('b_start', 0)
batch = Batch(contents, b_size, int(b_start), orphan=0)
return batch
Reply all
Reply to author
Forward
0 new messages