Last change
on this file since 1747 was
1737,
checked in by Henrik Bettermann, 18 years ago
|
merging with CPSSkinsless branch
In ZMI:
- delete all portlets in .cps_portlets
- delete all portlets in portal_cpsportlets
- import Portlet Tool, Skins Tool and Themes Tool
- optionally: - delete all themes in portal_themes and delete all method themes in portal_themes
|
File size:
741 bytes
|
Rev | Line | |
---|
[1737] | 1 | ##parameters=b_start=0 |
---|
| 2 | ## |
---|
| 3 | from ZTUtils import Batch |
---|
| 4 | from ZTUtils import LazyFilter |
---|
| 5 | |
---|
| 6 | options = {} |
---|
| 7 | |
---|
| 8 | options['has_local'] = 'local_pt' in context.objectIds() |
---|
| 9 | |
---|
| 10 | key, reverse = context.getDefaultSorting() |
---|
| 11 | items = context.contentValues() |
---|
| 12 | items = sequence.sort( items, ((key, 'cmp', reverse and 'desc' or 'asc'),) ) |
---|
| 13 | items = LazyFilter(items, skip='View') |
---|
| 14 | batch_obj = Batch(items, 25, b_start, orphan=0) |
---|
| 15 | listItemInfos = context.getBatchItemInfos(batch_obj) |
---|
| 16 | try: |
---|
| 17 | target = context.getActionInfo('object/view')['url'] |
---|
| 18 | except: |
---|
| 19 | target = '' |
---|
| 20 | |
---|
| 21 | navigation = context.getBatchNavigation(batch_obj, target) |
---|
| 22 | options['batch'] = { 'listItemInfos': listItemInfos, |
---|
| 23 | 'navigation': navigation } |
---|
| 24 | return context.index_html_template(**options) |
---|
Note: See
TracBrowser for help on using the repository browser.