# HG changeset patch # User Sverre Rabbelier # Date 1235666882 0 # Node ID 3342ce7a495c347229ad4aa2b5bdd7b8f6718116 # Parent bc6dc3bb8d2adaa876a9aa4719a95dc4a5be122d Fix some whitespace damadge and a style fix Patch by: Sverre Rabbelier diff -r bc6dc3bb8d2a -r 3342ce7a495c app/soc/logic/helper/notifications.py --- a/app/soc/logic/helper/notifications.py Thu Feb 26 16:47:04 2009 +0000 +++ b/app/soc/logic/helper/notifications.py Thu Feb 26 16:48:02 2009 +0000 @@ -99,7 +99,7 @@ to_user = entity.applicant url = "http://%(host)s%(redirect)s" % { - 'redirect': redirects.getApplicantRedirect(entity, + 'redirect': redirects.getApplicantRedirect(entity, {'url_name': params['group_url_name']}), 'host': os.environ['HTTP_HOST'], } diff -r bc6dc3bb8d2a -r 3342ce7a495c app/soc/logic/models/club.py --- a/app/soc/logic/models/club.py Thu Feb 26 16:47:04 2009 +0000 +++ b/app/soc/logic/models/club.py Thu Feb 26 16:48:02 2009 +0000 @@ -72,7 +72,7 @@ key_fields = request_logic.logic.getKeyFieldsFromFields(properties) request_logic.logic.updateOrCreateFromFields(properties, key_fields) - # set the application to completed + # set the application to completed fields = {'status' : 'completed'} club_app_logic.logic.updateEntityProperties(application, fields) diff -r bc6dc3bb8d2a -r 3342ce7a495c app/soc/logic/models/organization.py --- a/app/soc/logic/models/organization.py Thu Feb 26 16:47:04 2009 +0000 +++ b/app/soc/logic/models/organization.py Thu Feb 26 16:48:02 2009 +0000 @@ -81,7 +81,7 @@ key_fields = request_logic.logic.getKeyFieldsFromFields(properties) request_logic.logic.updateOrCreateFromFields(properties, key_fields) - # set the application to completed + # set the application to completed fields = {'status': 'completed'} org_app_logic.logic.updateEntityProperties(application, fields) diff -r bc6dc3bb8d2a -r 3342ce7a495c app/soc/views/models/program.py --- a/app/soc/views/models/program.py Thu Feb 26 16:47:04 2009 +0000 +++ b/app/soc/views/models/program.py Thu Feb 26 16:48:02 2009 +0000 @@ -79,7 +79,7 @@ new_params['sidebar_grouping'] = 'Programs' new_params['document_prefix'] = "program" - new_params['extra_dynaexclude'] = ['timeline', 'org_admin_agreement', + new_params['extra_dynaexclude'] = ['timeline', 'org_admin_agreement', 'mentor_agreement', 'student_agreement'] # TODO add clean field to check for uniqueness in link_id and scope_path @@ -176,7 +176,7 @@ rights = params['rights'] # only get all invisible and visible programs - fields = {'status':['invisible', 'visible']} + fields = {'status': ['invisible', 'visible']} entities = logic.getForFields(fields) menus = [] @@ -194,7 +194,7 @@ try: # check if the current user is a host for this program - rights.doCachedCheck('checkIsHostForProgram', + rights.doCachedCheck('checkIsHostForProgram', {'scope_path': entity.scope_path, 'link_id': entity.link_id}, []) @@ -249,7 +249,7 @@ if user: # add the 'List my Organization Applications' link items += [ - (redirects.getListSelfRedirect(program_entity, + (redirects.getListSelfRedirect(program_entity, {'url_name' : 'org_app'}), "List My Organization Applications", 'any_access')] @@ -281,7 +281,7 @@ if timeline_helper.isAfterEvent(timeline_entity, 'accepted_organization_announced_deadline'): # add a link to list all the organizations - items += [(redirects.getPublicListRedirect(program_entity, {'url_name': 'org'}), + items += [(redirects.getPublicListRedirect(program_entity, {'url_name': 'org'}), "List participating Organizations", 'any_access')] if not student_entity: @@ -310,7 +310,7 @@ def _getOrganizationEntries(self, program_entity, org_admin_entity, mentor_entity, params, id, user): - """Returns a list with menu items for org admins and mentors in a + """Returns a list with menu items for org admins and mentors in a specific program. """