예제 #1
0
 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)
예제 #2
0
 def getInterfaces(self):
     fti = getUtility(IDexterityFTI, name=self.portal_type)
     spec = Implements(fti.lookupSchema())
     spec.__name__ = self.portal_type
     return spec
예제 #3
0
 def getInterfaces(self):
     fti = getUtility(IDexterityFTI, name=self.portal_type)
     spec = Implements(fti.lookupSchema())
     spec.__name__ = self.portal_type
     return spec
예제 #4
0
 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)
예제 #5
0
 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)