author | Sverre Rabbelier <srabbelier@gmail.com> |
Sun, 07 Dec 2008 15:28:36 +0000 | |
changeset 701 | d6f5d34cff5a |
parent 700 | 8baf8367340d |
child 702 | e3b91b6955ff |
--- a/app/soc/views/models/base.py Sun Dec 07 15:02:29 2008 +0000 +++ b/app/soc/views/models/base.py Sun Dec 07 15:28:36 2008 +0000 @@ -511,6 +511,10 @@ if not self._params['scope_logic']: return + # If this entity is unscoped, to not try to retrieve a scope + if 'scope_path' not in fields: + return + scope = self._params['scope_logic'].logic.getFromKeyName(fields['scope_path']) fields['scope'] = scope