(self, state)
Recursively sets state on this layer the sublayer.
Recursively sets state on this layer the sublayer.
Recursively sets state on this layer the sublayer .
def state(self, state):
    """Recursively sets state on this layer the sublayer."""
    if isinstance(state, dict) and state == base.GET_STATE_FROM_CACHE:
      return
    self._state = (None, state[1])
    self.sublayer.state = state[0]
def state ( self , state ) : if isinstance ( state , dict ) and state == base . GET_STATE_FROM_CACHE : return self . _state = ( None , state [ 1 ] ) self . sublayer . state = state [ 0 ]