def unset(self, name, instance, **kwargs): self.log(name, instance) try: ExternalStorage.unset(self, name, instance, **kwargs) except Unauthorized: sm = getSecurityManager() manager.id = sm.getUser().getId() newSecurityManager(instance.REQUEST, manager) ExternalStorage.unset(self, name, instance, **kwargs) setSecurityManager(sm) pass if instance.isTemporary(): return append(UnsetAction(instance, os.path.join(self.getRootPath(), self.getFilepath(instance, name))))
def unset(self, name, instance, **kwargs): self._checkStorage(instance) return _E.unset(self, name, instance, **kwargs)