Example #1
0
    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
Example #2
0
 def render(self):
     exposure = self.context.context
     port = ExposurePort(exposure, self.request)
     result = list(port.export())
     return self.dumps(result)
Example #3
0
 def update(self):
     self.request['enable_border'] = True
     ExposurePort.update(self)
     WorkspaceLog.update(self)