def available(self): if not ISimplelayoutView.providedBy(self.view): return False if self.context.Description() or self.context.getImage(): return True return False
def setDefaultDesignInterface(obj, event): if not ISimplelayoutView.providedBy(obj): alsoProvides(obj, ISimplelayoutView)