Added GradingSurveyGroup to the sitemap and sidebar.
--- a/app/soc/modules/soc_core/callback.py Fri Jul 10 12:06:29 2009 +0200
+++ b/app/soc/modules/soc_core/callback.py Fri Jul 10 12:09:09 2009 +0200
@@ -28,6 +28,7 @@
from soc.views.models import cron
from soc.views.models import document
from soc.views.models import grading_project_survey as grading_survey
+from soc.views.models import grading_survey_group
from soc.views.models import host
from soc.views.models import job
from soc.views.models import mentor
@@ -80,6 +81,7 @@
self.core.registerSitemapEntry(cron.view.getDjangoURLPatterns())
self.core.registerSitemapEntry(document.view.getDjangoURLPatterns())
self.core.registerSitemapEntry(grading_survey.view.getDjangoURLPatterns())
+ self.core.registerSitemapEntry(grading_survey_group.view.getDjangoURLPatterns())
self.core.registerSitemapEntry(host.view.getDjangoURLPatterns())
self.core.registerSitemapEntry(job.view.getDjangoURLPatterns())
self.core.registerSitemapEntry(mentor.view.getDjangoURLPatterns())
@@ -134,3 +136,4 @@
self.core.registerSidebarEntry(survey.view.getSidebarMenus)
self.core.registerSidebarEntry(project_survey.view.getSidebarMenus)
self.core.registerSidebarEntry(grading_survey.view.getSidebarMenus)
+ self.core.registerSidebarEntry(grading_survey_group.view.getSidebarMenus)
--- a/app/soc/views/models/grading_survey_group.py Fri Jul 10 12:06:29 2009 +0200
+++ b/app/soc/views/models/grading_survey_group.py Fri Jul 10 12:09:09 2009 +0200
@@ -112,6 +112,7 @@
new_params['logic'] = survey_group_logic
new_params['rights'] = rights
new_params['name'] = "Grading Survey Group"
+ new_params['sidebar_grouping'] = "Surveys"
new_params['no_admin'] = True
new_params['no_create_raw'] = True