app/soc/logic/models/base.py
changeset 673 2433d5c1d7e6
parent 672 c8f9281f535b
child 679 77a286ff6667
equal deleted inserted replaced
672:c8f9281f535b 673:2433d5c1d7e6
    75     """Returns the logic of the enclosing scope
    75     """Returns the logic of the enclosing scope
    76     """
    76     """
    77 
    77 
    78     return self._scope_logic
    78     return self._scope_logic
    79 
    79 
    80   def getScopeDepth(self):
       
    81     """
       
    82     """
       
    83 
       
    84     if self._scope_logic:
       
    85       return 1 + self._scope_logic.logic.getScopeDepth()
       
    86 
       
    87     return 0
       
    88 
       
    89   def _updateField(self, model, name, value):
    80   def _updateField(self, model, name, value):
    90     """Hook called when a field is updated.
    81     """Hook called when a field is updated.
    91 
    82 
    92     Base classes should override if any special actions need to be
    83     Base classes should override if any special actions need to be
    93     taken when a field is updated. The field is not updated if the
    84     taken when a field is updated. The field is not updated if the