(self, other_namescope)
Detaches a model with the specified namescope.
Detaches a model with the specified namescope.
Detaches a model with the specified namescope .
def _detach(self, other_namescope):
    """Detaches a model with the specified namescope."""
    attached_element = self._attachments.get(other_namescope)
    if attached_element:
      attached_element._restore_attributes_dict()  # pylint: disable=protected-access
      del self._attachments[other_namescope]
    for child in self._children:
      child._detach(other_namescope)
def _detach ( self , other_namescope ) : attached_element = self . _attachments . get ( other_namescope ) if attached_element : attached_element . _restore_attributes_dict ( ) # pylint: disable=protected-access del self . _attachments [ other_namescope ] for child in self . _children : child . _detach ( other_namescope )