changeset 1427 | 00a118a442f7 |
parent 1424 | f8c762a33a43 |
child 1458 | ec06d3ee73e4 |
--- a/app/soc/views/models/base.py Sat Feb 21 11:08:15 2009 +0000 +++ b/app/soc/views/models/base.py Sat Feb 21 11:14:05 2009 +0000 @@ -672,9 +672,7 @@ if 'scope_path' not in fields: return - if entity: - fields['scope'] = entity.scope - else: + if not entity: scope = self._params['scope_logic'].logic.getFromKeyName( fields['scope_path']) fields['scope'] = scope