equal
deleted
inserted
replaced
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 |