# HG changeset patch # User Pawel Solyga # Date 1236191930 0 # Node ID c2201decd4b4ad196bd82563b63b1d9d0a366818 # Parent c63fb0240203d5b48c08a7784fc84ec110831931 Some style fixes, removal of unused imports and add ugettext where it was missing in soc.views.models.organization module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r c63fb0240203 -r c2201decd4b4 app/soc/views/models/organization.py --- a/app/soc/views/models/organization.py Wed Mar 04 18:34:28 2009 +0000 +++ b/app/soc/views/models/organization.py Wed Mar 04 18:38:50 2009 +0000 @@ -24,9 +24,8 @@ ] -from google.appengine.api import users - from django import forms +from django.utils.translation import ugettext from soc.logic import cleaning from soc.logic import dicts @@ -164,7 +163,7 @@ list_params = params.copy() list_params['list_action'] = (redirects.getRequestRedirectForRole, 'mentor') - list_params['list_description'] = ('Choose an Organization which ' + list_params['list_description'] = ugettext('Choose an Organization which ' 'you want to become a Mentor for.') filter = {'scope_path': kwargs['scope_path'], @@ -190,7 +189,7 @@ 'status': ['new', 'pending', 'accepted']} list_params = student_proposal_view.view.getParams().copy() - list_params['list_description'] = 'List of %s send to %s ' %( + list_params['list_description'] = 'List of %s send to %s ' % ( list_params['name_plural'], org_entity.name) list_params['list_action'] = (redirects.getPublicRedirect, list_params)