Add priority groups and jobs to the sitemap
Also add an entry in the Site menu to list them.
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/site.py Sat Apr 18 14:03:28 2009 +0000
+++ b/app/soc/views/models/site.py Sat Apr 18 14:03:49 2009 +0000
@@ -150,6 +150,8 @@
submenus += [(redirects.getListDocumentsRedirect(entity, 'site'),
"List Documents", 'any_access')]
+ submenus += [('/priority_group/list', "List Priority Groups", 'edit')]
+ submenus += [('/job/list', "List Jobs", 'edit')]
new_params = {}
new_params['sidebar_additional'] = submenus
--- a/app/soc/views/sitemap/build.py Sat Apr 18 14:03:28 2009 +0000
+++ b/app/soc/views/sitemap/build.py Sat Apr 18 14:03:49 2009 +0000
@@ -30,11 +30,13 @@
#from soc.views.models import club_member
from soc.views.models import document
from soc.views.models import host
+from soc.views.models import job
from soc.views.models import mentor
from soc.views.models import notification
from soc.views.models import organization
from soc.views.models import org_admin
from soc.views.models import org_app
+from soc.views.models import priority_group
from soc.views.models import program
from soc.views.models import request
from soc.views.models import site
@@ -83,11 +85,13 @@
#sitemap.addPages(club_member.view.getDjangoURLPatterns())
sitemap.addPages(document.view.getDjangoURLPatterns())
sitemap.addPages(host.view.getDjangoURLPatterns())
+sitemap.addPages(job.view.getDjangoURLPatterns())
sitemap.addPages(mentor.view.getDjangoURLPatterns())
sitemap.addPages(notification.view.getDjangoURLPatterns())
sitemap.addPages(organization.view.getDjangoURLPatterns())
sitemap.addPages(org_admin.view.getDjangoURLPatterns())
sitemap.addPages(org_app.view.getDjangoURLPatterns())
+sitemap.addPages(priority_group.view.getDjangoURLPatterns())
sitemap.addPages(program.view.getDjangoURLPatterns())
sitemap.addPages(request.view.getDjangoURLPatterns())
sitemap.addPages(site.view.getDjangoURLPatterns())