Style fixes and removal of unused imports in soc.logic.helper modules.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Fri, 03 Apr 2009 17:19:46 +0000
changeset 2068 f5e8fbbd3bea
parent 2067 9b58b42c6b53
child 2069 08b13ca90666
Style fixes and removal of unused imports in soc.logic.helper modules. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/logic/helper/convert_db.py
app/soc/logic/helper/notifications.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
--- 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
   }