示例#1
0
 def accepts(self, elem):
     elem_type = elem.getType()
     elem_interfaces = INTERFACES_EXPANDED.get(elem_type)[0]
     if elem_interfaces is None:
         return ElementParamType.accepts(self, elem)
     return self._name in elem_interfaces
示例#2
0
 def accepts(self, elem):
     elem_type = elem.getType()
     elem_interfaces = INTERFACES_EXPANDED.get(elem_type)[0]
     if elem_interfaces is None:
         return ElementParamType.accepts(self, elem)
     return self._name in elem_interfaces
示例#3
0
 def __init__(self, macro_server, name):
     ElementParamType.__init__(self, macro_server, name)
     bases, doc = INTERFACES_EXPANDED.get(name)
     self._interfaces = bases
示例#4
0
 def __init__(self, macro_server, name):
     ElementParamType.__init__(self, macro_server, name)
     bases, doc = INTERFACES_EXPANDED.get(name)
     self._interfaces = bases