Пример #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
Пример #2
0
 def render(self):
     exposure = self.context.context
     port = ExposurePort(exposure, self.request)
     result = list(port.export())
     return self.dumps(result)