Last change
on this file since 5044 was
2217,
checked in by Henrik Bettermann, 17 years ago
|
move content from waeup_custom to cps_custom
|
File size:
1.5 KB
|
Line | |
---|
1 | ## Script (Python) "getCustomDisplayParams" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters= |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: getCustomDisplayParams.py 1968 2007-06-26 09:47:37Z henrik $ |
---|
11 | """ |
---|
12 | FIXME: docstring? |
---|
13 | """ |
---|
14 | if context.isInWorkspace(): |
---|
15 | custom_params = {'format': 'detail_tab', |
---|
16 | 'sort_by': None, |
---|
17 | 'direction': 'asc', |
---|
18 | 'items_per_page': 50, |
---|
19 | 'nav_action': 'folder_view', |
---|
20 | 'filter': 0, |
---|
21 | 'detail_tab_columns': ['title', 'type', 'size', |
---|
22 | 'date', 'author','status', 'version'], |
---|
23 | } |
---|
24 | |
---|
25 | else: |
---|
26 | custom_params = {'format': None, |
---|
27 | 'sort_by': None, |
---|
28 | 'direction': 'asc', |
---|
29 | 'items_per_page': 100, |
---|
30 | 'nav_action': 'folder_view', |
---|
31 | 'filter': 0, |
---|
32 | 'detail_tab_columns': ['long_title', |
---|
33 | 'id', |
---|
34 | #'typetext', |
---|
35 | #'size', |
---|
36 | #'date', |
---|
37 | #'author', |
---|
38 | 'status', |
---|
39 | #'version' |
---|
40 | ], |
---|
41 | } |
---|
42 | |
---|
43 | return custom_params |
---|
44 | |
---|
Note: See
TracBrowser for help on using the repository browser.