def handleRevert(self, action): """\ Revert the states to what is in the structure. """ porter = ExposurePort(self.context, self.request) structure = list(porter.export()) wh = zope.component.getAdapter(self.context, IExposureWizard) wh.structure = structure self._updated = True
def render(self): exposure = self.context.context port = ExposurePort(exposure, self.request) result = list(port.export()) return self.dumps(result)
def update(self): self.request['enable_border'] = True ExposurePort.update(self) WorkspaceLog.update(self)