--- a/app/soc/views/helper/params.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/helper/params.py Sun Feb 15 14:58:03 2009 +0000
@@ -128,6 +128,8 @@
new_params['django_patterns_defaults'] = [
(r'^%(url_name)s/(?P<access_type>show)/%(key_fields)s$',
'soc.views.models.%(module_name)s.public', 'Show %(name_short)s'),
+ (r'^%(url_name)s/(?P<access_type>admin)/%(key_fields)s$',
+ 'soc.views.models.%(module_name)s.admin', 'Show %(name_short)s (admin)'),
(r'^%(url_name)s/(?P<access_type>export)/%(key_fields)s$',
'soc.views.models.%(module_name)s.export', 'Export %(name_short)s'),
(r'^%(url_name)s/(?P<access_type>delete)/%(key_fields)s$',
@@ -177,6 +179,7 @@
new_params['export_template'] = 'soc/%(module_name)s/export.html' % params
new_params['create_template'] = 'soc/models/edit.html'
new_params['edit_template'] = 'soc/models/edit.html'
+ new_params['admin_template'] = 'soc/models/admin.html'
new_params['list_template'] = 'soc/models/list.html'
new_params['invite_template'] = 'soc/models/invite.html'
--- a/app/soc/views/models/club.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/club.py Sun Feb 15 14:58:03 2009 +0000
@@ -205,6 +205,7 @@
view = View()
+admin = view.admin
applicant = view.applicant
apply_member = view.applyMember
create = view.create
--- a/app/soc/views/models/club_admin.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/club_admin.py Sun Feb 15 14:58:03 2009 +0000
@@ -116,6 +116,7 @@
view = View()
accept_invite = view.acceptInvite
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/club_app.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/club_app.py Sun Feb 15 14:58:03 2009 +0000
@@ -99,6 +99,7 @@
view = View()
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/club_member.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/club_member.py Sun Feb 15 14:58:03 2009 +0000
@@ -119,6 +119,7 @@
view = View()
accept_invite = view.acceptInvite
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/document.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/document.py Sun Feb 15 14:58:03 2009 +0000
@@ -179,6 +179,7 @@
view = View()
+admin = view.admin
create = view.create
edit = view.edit
delete = view.delete
--- a/app/soc/views/models/host.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/host.py Sun Feb 15 14:58:03 2009 +0000
@@ -130,6 +130,7 @@
view = View()
accept_invite = view.acceptInvite
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/mentor.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/mentor.py Sun Feb 15 14:58:03 2009 +0000
@@ -176,6 +176,7 @@
view = View()
accept_invite = view.acceptInvite
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/notification.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/notification.py Sun Feb 15 14:58:03 2009 +0000
@@ -201,6 +201,8 @@
view = View()
+
+admin = view.admin
create = view.create
edit = view.edit
delete = view.delete
--- a/app/soc/views/models/org_admin.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/org_admin.py Sun Feb 15 14:58:03 2009 +0000
@@ -190,6 +190,7 @@
view = View()
accept_invite = view.acceptInvite
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/org_app.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/org_app.py Sun Feb 15 14:58:03 2009 +0000
@@ -217,6 +217,7 @@
view = View()
+admin = view.admin
bulk_accept = view.bulkAccept
create = view.create
delete = view.delete
--- a/app/soc/views/models/organization.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/organization.py Sun Feb 15 14:58:03 2009 +0000
@@ -216,6 +216,7 @@
view = View()
+admin = view.admin
applicant = view.applicant
create = view.create
delete = view.delete
--- a/app/soc/views/models/program.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/program.py Sun Feb 15 14:58:03 2009 +0000
@@ -260,6 +260,7 @@
view = View()
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/request.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/request.py Sun Feb 15 14:58:03 2009 +0000
@@ -234,6 +234,7 @@
view = View()
+admin = view.admin
create = view.create
edit = view.edit
delete = view.delete
--- a/app/soc/views/models/site.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/site.py Sun Feb 15 14:58:03 2009 +0000
@@ -168,6 +168,7 @@
view = View()
+admin = view.admin
create = view.create
edit = view.edit
delete = view.delete
--- a/app/soc/views/models/sponsor.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/sponsor.py Sun Feb 15 14:58:03 2009 +0000
@@ -129,6 +129,7 @@
view = View()
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/timeline.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/timeline.py Sun Feb 15 14:58:03 2009 +0000
@@ -116,6 +116,7 @@
view = View()
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit
--- a/app/soc/views/models/user.py Sun Feb 15 14:57:03 2009 +0000
+++ b/app/soc/views/models/user.py Sun Feb 15 14:58:03 2009 +0000
@@ -128,6 +128,7 @@
view = View()
+admin = view.admin
create = view.create
delete = view.delete
edit = view.edit