""" import sys, types, imp, os, os.path, tempfile try: import threading except ImportError: sys.stderr.write(""" Error: your Python executable was not built with thread support. omniORBpy requires threads. Sorry. """) raise ImportError("Python executable has no thread support") import _omnipy _coreVersion = _omnipy.coreVersion() __version__ = _omnipy.__version__ # Make sure _omnipy submodules are in sys.modules, and have not been # damaged. This can happen if someone has messed with sys.modules, or # the interpreter has been stopped and restarted. reinit = 0 for k, v in list(_omnipy.__dict__.items()): if k[-5:] == "_func" and isinstance(v, types.ModuleType): sub = "_omnipy." + k if sub not in sys.modules: reinit = 1 sys.modules[sub] = v del sub del k, v
""" import sys, types, string, imp, os, os.path, tempfile, exceptions try: import threading except ImportError: print """ Error: your Python executable was not built with thread support. omniORBpy requires threads. Sorry. """ raise ImportError("Python executable has no thread support") import _omnipy _coreVersion = _omnipy.coreVersion() __version__ = _omnipy.__version__ # Make sure _omnipy submodules are in sys.modules, and have not been # damaged. This can happen if someone has messed with sys.modules, or # the interpreter has been stopped and restarted. reinit = 0 for k, v in _omnipy.__dict__.items(): if k[-5:] == "_func" and isinstance(v, types.ModuleType): sub = "_omnipy." + k if not sys.modules.has_key(sub): reinit = 1 sys.modules[sub] = v del sub del k, v
def __repr__(self): return "CORBA.Any(%s, %s)" % (repr(self._t), repr(self._v)) __methods__ = ["typecode", "value"] _d_any = tcInternal.tv_any ############################################################################# # # # ORB # # # ############################################################################# if _omnipy.coreVersion() == "2.8.0": ORB_ID = "omniORB2" elif _omnipy.coreVersion()[0] == "3": ORB_ID = "omniORB3" elif _omnipy.coreVersion()[0] == "4": ORB_ID = "omniORB4" else: ORB_ID = "UnknownORB" def ORB_init(argv=[], orb_identifier = ORB_ID): if _omnipy.need_ORB_init(): omniORB.poaCache.clear() omniORB.orb = ORB(argv, orb_identifier) omniORB.rootPOA = None return omniORB.orb