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