equal
deleted
inserted
replaced
37 |
37 |
38 global SIDEBAR |
38 global SIDEBAR |
39 SIDEBAR.append(callback) |
39 SIDEBAR.append(callback) |
40 |
40 |
41 def getSidebar(request): |
41 def getSidebar(request): |
42 """Constructs a sidebar for the specified request |
42 """Constructs a sidebar for the specified request. |
43 """ |
43 """ |
44 |
44 |
45 sidebar = [] |
45 sidebar = [] |
46 |
46 |
47 for callback in SIDEBAR: |
47 for callback in SIDEBAR: |
98 Items is expected to be a tuple with an url, a menu_text, and an |
98 Items is expected to be a tuple with an url, a menu_text, and an |
99 access_type. The access_type is then passed to checkAccess, if it |
99 access_type. The access_type is then passed to checkAccess, if it |
100 raises out_of_band.Error, the item will not be added. |
100 raises out_of_band.Error, the item will not be added. |
101 |
101 |
102 Args: |
102 Args: |
|
103 request: the django request object |
103 items: see above |
104 items: see above |
104 request: the django request object |
|
105 params: a dict with params for this View |
105 params: a dict with params for this View |
106 |
106 |
107 Params usage: |
107 Params usage: |
108 The params dictionary is passed as argument to getSidebarItems, |
108 The params dictionary is passed as argument to getSidebarItems, |
109 see the docstring of getSidebarItems on how it uses it. |
109 see the docstring of getSidebarItems on how it uses it. |