# HG changeset patch # User Pawel Solyga # Date 1238779186 0 # Node ID f5e8fbbd3bea97b177251176156744d96af2d548 # Parent 9b58b42c6b537fa82b11845320ea930a9e0b502e Style fixes and removal of unused imports in soc.logic.helper modules. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r 9b58b42c6b53 -r f5e8fbbd3bea app/soc/logic/helper/convert_db.py --- a/app/soc/logic/helper/convert_db.py Fri Apr 03 17:10:32 2009 +0000 +++ b/app/soc/logic/helper/convert_db.py Fri Apr 03 17:19:46 2009 +0000 @@ -22,8 +22,6 @@ ] -from google.appengine.api import users - from django import http from soc.models import user as user_model diff -r 9b58b42c6b53 -r f5e8fbbd3bea app/soc/logic/helper/notifications.py --- a/app/soc/logic/helper/notifications.py Fri Apr 03 17:10:32 2009 +0000 +++ b/app/soc/logic/helper/notifications.py Fri Apr 03 17:19:46 2009 +0000 @@ -146,7 +146,7 @@ # determine the subject review_type = 'public' if review.is_public else 'private' - subject = DEF_NEW_REVIEW_SUBJECT_FMT %(review_type, reviewed_name) + subject = DEF_NEW_REVIEW_SUBJECT_FMT % (review_type, reviewed_name) template = DEF_NEW_REVIEW_NOTIFICATION_TEMPLATE @@ -169,7 +169,7 @@ sender_name = from_user.name else: site_entity = model_logic.site.logic.getSingleton() - sender_name = 'The %s Team' %(site_entity.site_name) + sender_name = 'The %s Team' % (site_entity.site_name) new_message_properties = { 'sender_name': sender_name, @@ -185,7 +185,7 @@ 'subject': subject, 'message': message, 'scope': to_user, - 'link_id': 't%i' %(int(time.time()*100)), + 'link_id': 't%i' % (int(time.time()*100)), 'scope_path': to_user.link_id }