# HG changeset patch # User Pawel Solyga # Date 1226096000 0 # Node ID 83b49d60effd403079dc05ab49d2da0af25fa665 # Parent 0b479d573a4cca32435975afa1ecdb8e8df57e0e Some indention fixes and remove not needed variable in soc.logic.models.base module. Patch by: Pawel Solyga diff -r 0b479d573a4c -r 83b49d60effd app/soc/logic/models/base.py --- a/app/soc/logic/models/base.py Wed Nov 05 23:38:00 2008 +0000 +++ b/app/soc/logic/models/base.py Fri Nov 07 22:13:20 2008 +0000 @@ -71,16 +71,16 @@ # check if all key_field_names for this entity are present in kwargs if not all(field in kwargs.keys() for field in key_field_names): - raise Error("Not all the required key fields are present") + raise Error("Not all the required key fields are present") # check if all kwargs.values() are non-false if not all(kwargs.values()): - raise Error("Not all KeyValues are non-false") + raise Error("Not all KeyValues are non-false") # construct the KeyValues in the order given by getKeyFieldNames() keyvalues = [] for key_field_name in key_field_names: - keyvalues.append(kwargs[key_field_name]) + keyvalues.append(kwargs[key_field_name]) # construct the KeyName in the appropriate format return ":".join([self._name] + keyvalues) @@ -251,8 +251,7 @@ if unique: return query.get() - result = query.fetch(limit, offset) - return result + return query.fetch(limit, offset) def updateModelProperties(self, model, model_properties): """Update existing model entity using supplied model properties.