equal
deleted
inserted
replaced
670 |
670 |
671 # If this entity is unscoped, do not try to retrieve a scope |
671 # If this entity is unscoped, do not try to retrieve a scope |
672 if 'scope_path' not in fields: |
672 if 'scope_path' not in fields: |
673 return |
673 return |
674 |
674 |
675 if entity: |
675 if not entity: |
676 fields['scope'] = entity.scope |
|
677 else: |
|
678 scope = self._params['scope_logic'].logic.getFromKeyName( |
676 scope = self._params['scope_logic'].logic.getFromKeyName( |
679 fields['scope_path']) |
677 fields['scope_path']) |
680 fields['scope'] = scope |
678 fields['scope'] = scope |
681 |
679 |
682 def _public(self, request, entity, context): |
680 def _public(self, request, entity, context): |