Added Surveys to sidebar menu.
--- a/app/soc/modules/soc_core/callback.py Thu Jul 09 14:00:59 2009 +0200
+++ b/app/soc/modules/soc_core/callback.py Thu Jul 09 23:50:21 2009 +0200
@@ -131,3 +131,6 @@
self.core.registerSidebarEntry(org_admin.view.getSidebarMenus)
self.core.registerSidebarEntry(mentor.view.getSidebarMenus)
self.core.registerSidebarEntry(org_app.view.getSidebarMenus)
+ self.core.registerSidebarEntry(survey.view.getSidebarMenus)
+ self.core.registerSidebarEntry(project_survey.view.getSidebarMenus)
+ self.core.registerSidebarEntry(grading_survey.view.getSidebarMenus)
--- a/app/soc/views/models/survey.py Thu Jul 09 14:00:59 2009 +0200
+++ b/app/soc/views/models/survey.py Thu Jul 09 23:50:21 2009 +0200
@@ -110,8 +110,8 @@
new_params['logic'] = survey_logic
new_params['rights'] = rights
- new_params['name'] = "Survey"
- new_params['pickable'] = True
+ new_params['name'] = 'Survey'
+ new_params['sidebar_grouping'] = "Surveys"
new_params['extra_django_patterns'] = [
(r'^%(url_name)s/(?P<access_type>take)/%(key_fields)s$',