source: WAeUP_SRP/trunk/skins/waeup_custom/getCustomDisplayParams.py @ 373

Last change on this file since 373 was 332, checked in by joachim, 18 years ago

academics_contents for Levels, add Course in Semesters

File size: 1.6 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 32717 2006-02-10 13:35:19Z mturcu $
11# $Id: getCustomDisplayParams.py 32717 2006-02-10 13:35:19Z mturcu $
12"""
13FIXME: docstring?
14"""
15if 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
26else:
27    custom_params =  {'format': None,
28                      'sort_by': None,
29                      'direction': 'asc',
30                      'items_per_page': 30,
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
44return custom_params
45
Note: See TracBrowser for help on using the repository browser.