Last change
on this file since 1284 was
486,
checked in by joachim, 18 years ago
|
svn -R propset svn:keywords "Id" .
added layout_application_/edit/create/view
and cleaned that up.
|
-
Property svn:keywords set to
Id
|
File size:
1.4 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 486 2006-09-06 10:09:39Z joachim $ |
---|
11 | # $Id: getCustomDisplayParams.py 486 2006-09-06 10:09:39Z joachim $ |
---|
12 | """ |
---|
13 | FIXME: docstring? |
---|
14 | """ |
---|
15 | if context.isInWorkspace(): |
---|
16 | custom_params = {'format': 'detail_tab', |
---|
17 | 'sort_by': None, |
---|
18 | 'direction': 'asc', |
---|
19 | 'items_per_page': 30, |
---|
20 | 'nav_action': 'folder_view', |
---|
21 | 'filter': 0, |
---|
22 | 'detail_tab_columns': ['title', 'type', 'size', |
---|
23 | 'date', 'author','status', 'version'], |
---|
24 | } |
---|
25 | |
---|
26 | else: |
---|
27 | custom_params = {'format': None, |
---|
28 | 'sort_by': None, |
---|
29 | 'direction': 'asc', |
---|
30 | 'items_per_page': 50, |
---|
31 | 'nav_action': 'folder_view', |
---|
32 | 'filter': 0, |
---|
33 | 'detail_tab_columns': ['long_title', |
---|
34 | 'id', |
---|
35 | #'typetext', |
---|
36 | #'size', |
---|
37 | #'date', |
---|
38 | #'author', |
---|
39 | 'status', |
---|
40 | #'version' |
---|
41 | ], |
---|
42 | } |
---|
43 | |
---|
44 | return custom_params |
---|
45 | |
---|
Note: See
TracBrowser for help on using the repository browser.