def available(self):
        if not ISimplelayoutView.providedBy(self.view):
            return False

        if self.context.Description() or self.context.getImage():
            return True

        return False
示例#2
0
def setDefaultDesignInterface(obj, event):
    if not ISimplelayoutView.providedBy(obj):
        alsoProvides(obj, ISimplelayoutView)