# HG changeset patch # User Pawel Solyga # Date 1233494974 0 # Node ID f89bbc9b20a639d1423d4e8cae3d7512880abdb2 # Parent b07b7d5b3e27ca992cfe521143d48b984d11e8f6 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 diff -r b07b7d5b3e27 -r f89bbc9b20a6 app/soc/views/models/club.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 diff -r b07b7d5b3e27 -r f89bbc9b20a6 app/soc/views/models/program.py --- 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 diff -r b07b7d5b3e27 -r f89bbc9b20a6 app/soc/views/models/site.py --- 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 diff -r b07b7d5b3e27 -r f89bbc9b20a6 app/soc/views/models/sponsor.py --- 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 diff -r b07b7d5b3e27 -r f89bbc9b20a6 app/soc/views/models/user_self.py --- 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'] = {