app/soc/views/models/base.py
changeset 1427 00a118a442f7
parent 1424 f8c762a33a43
child 1458 ec06d3ee73e4
equal deleted inserted replaced
1426:dc3a7f618b68 1427:00a118a442f7
   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):