Last change
on this file since 1689 was
1522,
checked in by lregebro, 18 years ago
|
The skinless design.
|
-
Property svn:keywords set to
Id
|
File size:
741 bytes
|
Line | |
---|
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.