예제 #1
0
 def imports(self):
     if self.direction == 'provides':
         modules = [python.poaModule(self.namespace)]
     else:
         modules = [
             'ossie.cf.ExtendedCF', 'ossie.cf.ExtendedCF__POA',
             python.idlModule(self.namespace)
         ]
     return [python.importModule(m) for m in modules]
예제 #2
0
 def imports(self):
     if self.direction == 'provides':
         modules = [python.poaModule(self.namespace)]
     else:
         modules = [
             'ossie.cf.ExtendedCF',
             'ossie.cf.ExtendedCF__POA',
             python.idlModule(self.namespace)
         ]
     return [python.importModule(m) for m in modules]
예제 #3
0
 def _mapComponent(self, softpkg):
     pycomp = {}
     pycomp['userclass'] = self.userClass(softpkg)
     idl = IDLInterface(softpkg.descriptor().repid().repid)
     pycomp['interface'] = idl.interface()
     pycomp['operations'] = idl.operations()
     pycomp['attributes'] = idl.attributes()
     module = python.idlModule(idl.namespace())
     poamod = python.poaModule(idl.namespace())
     pycomp['imports'] = (module, poamod)
     pycomp['baseclass'] = poamod.split('.')[-1] + '.' + idl.interface()
     
     return pycomp