예제 #1
0
파일: step.py 프로젝트: Zojax/zojax.wizard
    def publishTraverse(self, request, name):
        view = queryMultiAdapter((self, request), name=name)
        if view is not None:
            if ISaveable.providedBy(view):
                self.saveable = True
            else:
                self.saveable = False

            self.wizard.updateActions()
            return view

        for publisher in subscribers((self, request), IPublisherPlugin):
            try:
                view = publisher.publishTraverse(request, name)
                if ISaveable.providedBy(view):
                    self.saveable = True
                else:
                    self.saveable = False

                self.wizard.updateActions()
                return view
            except NotFound:
                pass

        raise NotFound(self, name, request)
예제 #2
0
파일: step.py 프로젝트: Zojax/zojax.wizard
 def isSaveable(self):
     if self.saveable is None:
         return ISaveable.providedBy(self)
     else:
         return self.saveable