changeset 2190 | 399fc9411abc |
parent 2161 | 3b5e0e0880cd |
child 2203 | e2c6e6722d69 |
--- 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']]