Remove extra whitespaces and fix too long lines in soc.logic.helper.request module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 24 Jan 2009 12:45:57 +0000
changeset 955 b00251a6b9f9
parent 954 446d053dfa6c
child 956 aaac33732ad5
Remove extra whitespaces and fix too long lines in soc.logic.helper.request module. Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/logic/helper/request.py
--- a/app/soc/logic/helper/request.py	Sat Jan 24 11:25:15 2009 +0000
+++ b/app/soc/logic/helper/request.py	Sat Jan 24 12:45:57 2009 +0000
@@ -29,8 +29,10 @@
   """Marks the request that leads to the given role_entity as completed.
   
   Args:
-    role_entity : A datastore entity that is either a role or a subclass of the role model
-    role_name : The name in the request that is used to describe the type of the role_entity
+    role_entity: A datastore entity that is either a role or a subclass 
+      of the role model
+    role_name: The name in the request that is used to describe the 
+      type of the role_entity
    
   """
 
@@ -39,8 +41,8 @@
 
   # create the query properties for the specific role
   properties = {'scope_path' : role_entity.scope_path,
-      'link_id' : role_entity.link_id,
-      'role' : role_name}
+      'link_id': role_entity.link_id,
+      'role': role_name}
 
   # get the request that complies with properties
   request_entity = request_logic.getForFields(properties, unique=True)
@@ -48,4 +50,4 @@
   # mark the request completed, if there is any
   if request_entity:
     request_logic.updateModelProperties(request_entity,
-        {'state' : 'completed'})
+        {'state': 'completed'})