def getInterfaces(self): if self._interfaces is not None: spec = Implements(*self._interfaces) spec.__name__ = getattr(self._callable, '__name__', '[callable]') return spec return implementedBy(self._callable)
def getInterfaces(self): fti = getUtility(IDexterityFTI, name=self.portal_type) spec = Implements(fti.lookupSchema()) spec.__name__ = self.portal_type return spec
def getInterfaces(self): fti = getUtility(IDexterityFTI, name=self.portal_type) spec = Implements(fti.lookupSchema()) spec.__name__ = self.portal_type return spec
def getInterfaces(self): if self._interfaces is not None: spec = Implements(*self._interfaces) spec.__name__ = getattr(self._callable, '__name__', '[callable]') return spec return implementedBy(self._callable)
def get_interfaces(self): if self._interfaces is not None: spec = Implements(*self._interfaces) spec.__name__ = getattr(self._callable, "__name__", "[callable]") return spec return implementedBy(self._callable)