def wrapper(self, *args): if hasattr(self, '_container_ref') and self._container_ref: raise base.ImmutableException() return func(self, *args)
def wrapper(self, *args): if self._secret_ref: raise base.ImmutableException() return func(self, *args)