Readability fix in base logic
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 15 Apr 2009 23:22:11 +0000
changeset 2190 399fc9411abc
parent 2189 8c9ab031a6b3
child 2191 d20557e217dc
Readability fix in base logic Patch by: Sverre Rabbelier
app/soc/logic/models/base.py
--- a/app/soc/logic/models/base.py	Wed Apr 15 23:21:40 2009 +0000
+++ b/app/soc/logic/models/base.py	Wed Apr 15 23:22:11 2009 +0000
@@ -163,7 +163,7 @@
       fields: the dict from which to extract the key values
     """
 
-    if not all( (i in fields for i in ['scope_path', 'link_id']) ):
+    if ('scope_path' not in fields) or ('link_id' not in fields):
       raise InvalidArgumentError
 
     return [fields['scope_path'], fields['link_id']]