# HG changeset patch # User Pawel Solyga # Date 1232801157 0 # Node ID b00251a6b9f9cf0e48620bbb066751035108287e # Parent 446d053dfa6cbfdca32143305e7f0db62f9ecf91 Remove extra whitespaces and fix too long lines in soc.logic.helper.request module. Patch by: Pawel Solyga Review by: to-be-reviewed diff -r 446d053dfa6c -r b00251a6b9f9 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'})