Changed method name in access.py to fix overwriting another method.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 26 Jan 2009 20:33:20 +0000
changeset 1005 46b3e946a3e1
parent 1004 bfc8e9582c47
child 1006 6abf12b9e646
Changed method name in access.py to fix overwriting another method. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
app/soc/views/models/club.py
--- a/app/soc/views/helper/redirects.py	Mon Jan 26 17:19:14 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Mon Jan 26 20:33:20 2009 +0000
@@ -95,7 +95,7 @@
   return result
 
 
-def getInviteRedirect(entity, role_name):
+def getInviteRedirectForRole(entity, role_name):
   """Returns the redirect to create an invite for a specific role.
   """
 
--- a/app/soc/views/models/club.py	Mon Jan 26 17:19:14 2009 +0000
+++ b/app/soc/views/models/club.py	Mon Jan 26 20:33:20 2009 +0000
@@ -229,12 +229,12 @@
       submenus.append(submenu)
 
       # add a link to invite an admin
-      submenu = (redirects.getInviteRedirect(group_entity, 'club_admin'), 
+      submenu = (redirects.getInviteRedirectForRole(group_entity, 'club_admin'), 
           "Invite an Admin", 'any_access')
       submenus.append(submenu)
 
       # add a link to invite a member
-      submenu = (redirects.getInviteRedirect(group_entity, 'club_member'), 
+      submenu = (redirects.getInviteRedirectForRole(group_entity, 'club_member'), 
           "Invite a Member", 'any_access')
       submenus.append(submenu)
 
@@ -243,6 +243,11 @@
           "List Requests and Invites", 'any_access')
       submenus.append(submenu)
 
+      # add a link to the edit page
+      submenu = (redirects.getEditRedirect(group_entity, params), 
+          "Edit Club Profile", 'any_access')
+      submenus.append(submenu)
+
       # TODO(ljvderijk) add more usefull links, like resign as admin/member
 
     return submenus