コード例 #1
0
ファイル: projects.py プロジェクト: Zojax/zojax.project
    def getContext(self):
        context = self.context

        while not IContentSpace.providedBy(context):
            context = context.__parent__
            if context is None:
                return

        return context
コード例 #2
0
ファイル: actions.py プロジェクト: Zojax/zojax.content.space
    def isAvailable(self):
        if not IContentSpace.providedBy(self.context):
            return False

        return super(EditSpaceAction, self).isAvailable()