# HG changeset patch
# User Pawel Solyga <Pawel.Solyga@gmail.com>
# Date 1229300664 0
# Node ID 018efb9863dcc3116bcd89378b0f25d6ffa12b0c
# Parent  ed3b545a9c147a224d2dac54f8c82a273da7ce0c
Fix import sorting in soc.views.helper.access module and rename 'host' to 'Program Administrator'.

Patch by: Pawel Solyga

diff -r ed3b545a9c14 -r 018efb9863dc 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.