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() pycomp.update(self.getNamespace(idl)) return pycomp
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