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
--- 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)