Example #1
0
    def __str__(self):
        return "omniORB.LOCATION_FORWARD exception"

# "Static" objects required by the _omnipy module. They are here so
# memory management works correctly if the omniORB modules are
# unloaded.

_emptyTuple      = ()
_servantAttr     = "__omni_svt"
_objAttr         = "_obj"
_NP_RepositoryId = "_NP_RepositoryId"


# Register this module and the threading module with omnipy:
import omniORB, omniORB.PortableServer
_omnipy.registerPyObjects(omniORB)

# Import CORBA module stubs
import corbaidl_idl
import boxes_idl
import pollable_idl
import messaging_idl

sys.modules["corbaidl_idl"]  = corbaidl_idl
sys.modules["boxes_idl"]     = boxes_idl
sys.modules["pollable_idl"]  = pollable_idl
sys.modules["messaging_idl"] = messaging_idl

# Import the Interface Repository stubs if necessary
if os.environ.has_key("OMNIORBPY_IMPORT_IR_STUBS"):
    importIRStubs()
Example #2
0
    def __str__(self):
        return "omniORB.LOCATION_FORWARD exception"

# "Static" objects required by the _omnipy module. They are here so
# memory management works correctly if the omniORB modules are
# unloaded.

_emptyTuple      = ()
_servantAttr     = "__omni_svt"
_objAttr         = "_obj"
_NP_RepositoryId = "_NP_RepositoryId"


# Register this module and the threading module with omnipy:
import omniORB, omniORB.PortableServer
_omnipy.registerPyObjects(omniORB)

# Import CORBA module stubs
from omniORB import corbaidl_idl
sys.modules["corbaidl_idl"]  = corbaidl_idl

from omniORB import boxes_idl
sys.modules["boxes_idl"]     = boxes_idl

from omniORB import pollable_idl
sys.modules["pollable_idl"]  = pollable_idl

from omniORB import messaging_idl
sys.modules["messaging_idl"] = messaging_idl

# Import the Interface Repository stubs if necessary