app/soc/views/models/base.py
changeset 714 3e2ce3d8057a
parent 710 edb5dbb1dea7
child 735 28225172af06
equal deleted inserted replaced
713:bcd480745f44 714:3e2ce3d8057a
   510 
   510 
   511     # If scope_logic is not defined, this entity has no scope
   511     # If scope_logic is not defined, this entity has no scope
   512     if not self._params['scope_logic']:
   512     if not self._params['scope_logic']:
   513       return
   513       return
   514 
   514 
   515     # If this entity is unscoped, to not try to retrieve a scope
   515     # If this entity is unscoped, do not try to retrieve a scope
   516     if 'scope_path' not in fields:
   516     if 'scope_path' not in fields:
   517       return
   517       return
   518 
   518 
   519     scope = self._params['scope_logic'].logic.getFromKeyName(fields['scope_path'])
   519     scope = self._params['scope_logic'].logic.getFromKeyName(fields['scope_path'])
   520     fields['scope'] = scope
   520     fields['scope'] = scope