Fix import sorting in soc.views.helper.access module and rename 'host' to 'Program Administrator'.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Mon, 15 Dec 2008 00:24:24 +0000
changeset 746 018efb9863dc
parent 745 ed3b545a9c14
child 747 ad62f4c3245e
Fix import sorting in soc.views.helper.access module and rename 'host' to 'Program Administrator'. Patch by: Pawel Solyga
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Mon Dec 15 00:22:50 2008 +0000
+++ b/app/soc/views/helper/access.py	Mon Dec 15 00:24:24 2008 +0000
@@ -33,8 +33,8 @@
 
 from google.appengine.api import users
 
+from django.core import urlresolvers
 from django.utils.translation import ugettext_lazy
-from django.core import urlresolvers
 
 from soc.logic import accounts
 from soc.logic import dicts
@@ -215,7 +215,7 @@
     return
 
   login_message_fmt = DEF_DEV_LOGOUT_LOGIN_MSG_FMT % {
-      'role': 'a site developer '}
+      'role': 'a Site Developer '}
 
   raise out_of_band.LoginRequest(message_fmt=login_message_fmt)
 
@@ -255,7 +255,7 @@
     return
 
   login_message_fmt = DEF_DEV_LOGOUT_LOGIN_MSG_FMT % {
-      'role': 'a host '}
+      'role': 'a Program Administrator '}
 
   raise out_of_band.LoginRequest(message_fmt=login_message_fmt)
 
@@ -286,7 +286,7 @@
   checkIsUser(request)
 
   login_message_fmt = DEF_DEV_LOGOUT_LOGIN_MSG_FMT % {
-      'role': 'a host for this program'}
+      'role': 'a Program Administrator for this Program'}
 
   splitpath = request.path.split('/')
   splitpath = splitpath[1:] # cut off leading ''
@@ -364,7 +364,7 @@
   deny(request)
 
 def checkCanInvite(request):
-  """Checks to see if the current user can create an invite
+  """Checks to see if the current user can create an invite.
 
   Note that if the current url is not in the default 'request' form
   this method either deny()s or performs the wrong access check.