Rename 'Create a new document' links to 'Create a New Document', also rename 'Create a new Program' to 'Create a New Program' in soc.views.models modules.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 01 Feb 2009 13:29:34 +0000
changeset 1144 f89bbc9b20a6
parent 1143 b07b7d5b3e27
child 1145 b2034ab78e3a
Rename 'Create a new document' links to 'Create a New Document', also rename 'Create a new Program' to 'Create a New Program' in soc.views.models modules. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/views/models/club.py
app/soc/views/models/program.py
app/soc/views/models/site.py
app/soc/views/models/sponsor.py
app/soc/views/models/user_self.py
--- a/app/soc/views/models/club.py	Sun Feb 01 13:26:25 2009 +0000
+++ b/app/soc/views/models/club.py	Sun Feb 01 13:29:34 2009 +0000
@@ -274,7 +274,7 @@
 
     if roles.get('club_member') or roles.get('club_admin'):
       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'club'),
-          "Create new document", 'any_access')
+          "Create a New Document", 'any_access')
       submenus.append(submenu)
 
     return submenus
--- a/app/soc/views/models/program.py	Sun Feb 01 13:26:25 2009 +0000
+++ b/app/soc/views/models/program.py	Sun Feb 01 13:29:34 2009 +0000
@@ -79,7 +79,7 @@
 
         'scope_path': forms.CharField(widget=forms.HiddenInput, required=True),
 
-        'workflow' : forms.ChoiceField(choices=[('gsoc','Project-based'),
+        'workflow': forms.ChoiceField(choices=[('gsoc','Project-based'),
             ('ghop','Task-based')], required=True),
         }
 
@@ -157,9 +157,9 @@
       try:
         # check if the current user is a host for this program
         rights.doCachedCheck('checkIsHostForProgram', 
-            {'scope_path' : entity.scope_path,
-            'link_id' : entity.link_id,
-            'workflow' : entity.workflow}, [])
+            {'scope_path': entity.scope_path,
+            'link_id': entity.link_id,
+            'workflow': entity.workflow}, [])
 
         if entity.status == 'invisible':
           # still add the document links so hosts can see how it looks like
@@ -173,7 +173,7 @@
             "Edit Program Timeline", 'any_access')]
         # add link to create a new Program Document
         items += [(redirects.getCreateDocumentRedirect(entity, 'program'),
-          "Create new document", 'any_access')]
+            "Create a New Document", 'any_access')]
 
       except out_of_band.Error:
         pass
--- a/app/soc/views/models/site.py	Sun Feb 01 13:26:25 2009 +0000
+++ b/app/soc/views/models/site.py	Sun Feb 01 13:29:34 2009 +0000
@@ -103,7 +103,7 @@
       submenus += document_view.view.getMenusForScope(entity, self._params)
       if accounts.isDeveloper(id, user):
         submenus += [(redirects.getCreateDocumentRedirect(entity, 'site'),
-            "Create new document", 'any_access')]
+            "Create a New Document", 'any_access')]
 
     new_params = {}
     new_params['sidebar_additional'] = submenus
--- a/app/soc/views/models/sponsor.py	Sun Feb 01 13:26:25 2009 +0000
+++ b/app/soc/views/models/sponsor.py	Sun Feb 01 13:29:34 2009 +0000
@@ -82,7 +82,7 @@
     if roles.get('host'):
       # add a link to create a new program
       submenu = (redirects.getCreateRedirect(group_entity,
-          {'url_name': 'program'}),"Create a new Program", 'any_access')
+          {'url_name': 'program'}),"Create a New Program", 'any_access')
       submenus.append(submenu)
 
       # add a link to the management page
@@ -112,7 +112,7 @@
       submenus.append(submenu)
 
       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'sponsor'),
-          "Create new document", 'any_access')
+          "Create a New Document", 'any_access')
       submenus.append(submenu)
 
     return submenus
--- a/app/soc/views/models/user_self.py	Sun Feb 01 13:26:25 2009 +0000
+++ b/app/soc/views/models/user_self.py	Sun Feb 01 13:29:34 2009 +0000
@@ -87,7 +87,7 @@
         'account', 'is_developer']
 
     new_params['create_extra_dynafields'] = {
-        'clean_agreed_to_tos' : cleaning.clean_agrees_to_tos('agreed_to_tos'),
+        'clean_agreed_to_tos': cleaning.clean_agrees_to_tos('agreed_to_tos'),
         'clean_link_id': cleaning.clean_user_not_exist('link_id'),}
 
     new_params['edit_extra_dynafields'] = {