home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
fnb101.zip
/
Lib
/
site-packages
/
Fnorb
/
orb
/
GIOP.py
< prev
next >
Wrap
Text File
|
1999-06-28
|
12KB
|
189 lines
""" Module: IDL:omg.org/GIOP:1.0
Automagically generated by:-
The ORB called Fnorb v1.0.Threads.R.Us
"""
_FNORB_ID = "IDL:omg.org/GIOP:1.0"
# Fnorb modules.
import CORBA
import TypeManager
import Util
class Version:
""" Struct: IDL:omg.org/GIOP/Version:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/Version:1.0"
def __init__(self, _major, _minor):
""" Constructor. """
self.major = _major
self.minor = _minor
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.major, self.minor)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/Version:1.0", "000000000000000F00000058000000000000001D49444C3A6F6D672E6F72672F47494F502F56657273696F6E3A312E30000000000000000856657273696F6E0000000002000000066D616A6F720000000000000A000000066D696E6F720000000000000A", Version)
# Enum: IDL:omg.org/GIOP/MsgType:1.0
Request = Util.EnumMember("Request", 0)
Reply = Util.EnumMember("Reply", 1)
CancelRequest = Util.EnumMember("CancelRequest", 2)
LocateRequest = Util.EnumMember("LocateRequest", 3)
LocateReply = Util.EnumMember("LocateReply", 4)
CloseConnection = Util.EnumMember("CloseConnection", 5)
MessageError = Util.EnumMember("MessageError", 6)
MsgType = Util.Enum("IDL:omg.org/GIOP/MsgType:1.0", [Request, Reply, CancelRequest, LocateRequest, LocateReply, CloseConnection, MessageError])
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/MsgType:1.0", "0000000000000011000000AD000000000000001D49444C3A6F6D672E6F72672F47494F502F4D7367547970653A312E3000000000000000084D7367547970650000000007000000085265717565737400000000065265706C790000000000000E43616E63656C526571756573740000000000000E4C6F63617465526571756573740000000000000C4C6F636174655265706C790000000010436C6F7365436F6E6E656374696F6E000000000D4D6573736167654572726F7200", MsgType)
class MessageHeader:
""" Struct: IDL:omg.org/GIOP/MessageHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/MessageHeader:1.0"
def __init__(self, _magic, _GIOP_version, _byte_order, _message_type, _message_size):
""" Constructor. """
self.magic = _magic
self.GIOP_version = _GIOP_version
self.byte_order = _byte_order
self.message_type = _message_type
self.message_size = _message_size
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.magic, self.GIOP_version, self.byte_order, self.message_type, self.message_size)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/MessageHeader:1.0", "000000000000000F0000011C000000000000002349444C3A6F6D672E6F72672F47494F502F4D6573736167654865616465723A312E3000000000000E4D65737361676548656164657200000000000005000000066D61676963000000000000140000000C0000000000000009000000040000000D47494F505F76657273696F6E000000000000000F00000058000000000000001D49444C3A6F6D672E6F72672F47494F502F56657273696F6E3A312E30000000000000000856657273696F6E0000000002000000066D616A6F720000000000000A000000066D696E6F720000000000000A0000000B627974655F6F726465720000000000080000000D6D6573736167655F74797065000000000000000A0000000D6D6573736167655F73697A650000000000000005", MessageHeader)
# Alias: IDL:omg.org/GIOP/Principal:1.0
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/Principal:1.0", "00000000000000130000000C000000000000000A00000000", None)
class RequestHeader:
""" Struct: IDL:omg.org/GIOP/RequestHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/RequestHeader:1.0"
def __init__(self, _service_context, _request_id, _response_expected, _object_key, _operation, _requesting_principal):
""" Constructor. """
self.service_context = _service_context
self.request_id = _request_id
self.response_expected = _response_expected
self.object_key = _object_key
self.operation = _operation
self.requesting_principal = _requesting_principal
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.service_context, self.request_id, self.response_expected, self.object_key, self.operation, self.requesting_principal)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/RequestHeader:1.0", "000000000000000F0000020C000000000000002349444C3A6F6D672E6F72672F47494F502F526571756573744865616465723A312E3000000000000E526571756573744865616465720000000000000600000010736572766963655F636F6E74657874000000001500000120000000000000002749444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578744C6973743A312E3000000000001353657276696365436F6E746578744C697374000000000013000000D0000000000000000F000000C0000000000000002349444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578743A312E3000000000000F53657276696365436F6E746578740000000000020000000B636F6E746578745F69640000000000150000003C000000000000001E49444C3A6F6D672E6F72672F494F502F5365727669636549643A312E300000000000000A536572766963654964000000000000050000000D636F6E746578745F6461746100000000000000130000000C000000000000000A00000000000000000000000B726571756573745F696400000000000500000012726573706F6E73655F6578706563746564000000000000080000000B6F626A6563745F6B65790000000000130000000C000000000000000A000000000000000A6F7065726174696F6E00000000000012000000000000001572657175657374696E675F7072696E636970616C000000000000000D", RequestHeader)
# Enum: IDL:omg.org/GIOP/ReplyStatusType:1.0
NO_EXCEPTION = Util.EnumMember("NO_EXCEPTION", 0)
USER_EXCEPTION = Util.EnumMember("USER_EXCEPTION", 1)
SYSTEM_EXCEPTION = Util.EnumMember("SYSTEM_EXCEPTION", 2)
LOCATION_FORWARD = Util.EnumMember("LOCATION_FORWARD", 3)
ReplyStatusType = Util.Enum("IDL:omg.org/GIOP/ReplyStatusType:1.0", [NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD])
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/ReplyStatusType:1.0", "00000000000000110000009D000000000000002549444C3A6F6D672E6F72672F47494F502F5265706C79537461747573547970653A312E3000000000000000105265706C795374617475735479706500000000040000000D4E4F5F455843455054494F4E000000000000000F555345525F455843455054494F4E00000000001153595354454D5F455843455054494F4E00000000000000114C4F434154494F4E5F464F525741524400", ReplyStatusType)
class ReplyHeader:
""" Struct: IDL:omg.org/GIOP/ReplyHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/ReplyHeader:1.0"
def __init__(self, _service_context, _request_id, _reply_status):
""" Constructor. """
self.service_context = _service_context
self.request_id = _request_id
self.reply_status = _reply_status
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.service_context, self.request_id, self.reply_status)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/ReplyHeader:1.0", "000000000000000F00000249000000000000002149444C3A6F6D672E6F72672F47494F502F5265706C794865616465723A312E30000000000000000C5265706C79486561646572000000000300000010736572766963655F636F6E74657874000000001500000120000000000000002749444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578744C6973743A312E3000000000001353657276696365436F6E746578744C697374000000000013000000D0000000000000000F000000C0000000000000002349444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578743A312E3000000000000F53657276696365436F6E746578740000000000020000000B636F6E746578745F69640000000000150000003C000000000000001E49444C3A6F6D672E6F72672F494F502F5365727669636549643A312E300000000000000A536572766963654964000000000000050000000D636F6E746578745F6461746100000000000000130000000C000000000000000A00000000000000000000000B726571756573745F69640000000000050000000D7265706C795F73746174757300000000000000110000009D000000000000002549444C3A6F6D672E6F72672F47494F502F5265706C79537461747573547970653A312E3000000000000000105265706C795374617475735479706500000000040000000D4E4F5F455843455054494F4E000000000000000F555345525F455843455054494F4E00000000001153595354454D5F455843455054494F4E00000000000000114C4F434154494F4E5F464F525741524400", ReplyHeader)
class CancelRequestHeader:
""" Struct: IDL:omg.org/GIOP/CancelRequestHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/CancelRequestHeader:1.0"
def __init__(self, _request_id):
""" Constructor. """
self.request_id = _request_id
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.request_id,)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/CancelRequestHeader:1.0", "000000000000000F00000064000000000000002949444C3A6F6D672E6F72672F47494F502F43616E63656C526571756573744865616465723A312E30000000000000001443616E63656C5265717565737448656164657200000000010000000B726571756573745F6964000000000005", CancelRequestHeader)
class LocateRequestHeader:
""" Struct: IDL:omg.org/GIOP/LocateRequestHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/LocateRequestHeader:1.0"
def __init__(self, _request_id, _object_key):
""" Constructor. """
self.request_id = _request_id
self.object_key = _object_key
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.request_id, self.object_key)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateRequestHeader:1.0", "000000000000000F00000088000000000000002949444C3A6F6D672E6F72672F47494F502F4C6F63617465526571756573744865616465723A312E3000000000000000144C6F636174655265717565737448656164657200000000020000000B726571756573745F69640000000000050000000B6F626A6563745F6B65790000000000130000000C000000000000000A00000000", LocateRequestHeader)
# Enum: IDL:omg.org/GIOP/LocateStatusType:1.0
UNKNOWN_OBJECT = Util.EnumMember("UNKNOWN_OBJECT", 0)
OBJECT_HERE = Util.EnumMember("OBJECT_HERE", 1)
OBJECT_FORWARD = Util.EnumMember("OBJECT_FORWARD", 2)
LocateStatusType = Util.Enum("IDL:omg.org/GIOP/LocateStatusType:1.0", [UNKNOWN_OBJECT, OBJECT_HERE, OBJECT_FORWARD])
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateStatusType:1.0", "000000000000001100000083000000000000002649444C3A6F6D672E6F72672F47494F502F4C6F63617465537461747573547970653A312E30000000000000114C6F636174655374617475735479706500000000000000030000000F554E4B4E4F574E5F4F424A45435400000000000C4F424A4543545F48455245000000000F4F424A4543545F464F525741524400", LocateStatusType)
class LocateReplyHeader:
""" Struct: IDL:omg.org/GIOP/LocateReplyHeader:1.0 """
_FNORB_ID = "IDL:omg.org/GIOP/LocateReplyHeader:1.0"
def __init__(self, _request_id, _locate_status):
""" Constructor. """
self.request_id = _request_id
self.locate_status = _locate_status
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.request_id, self.locate_status)
TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateReplyHeader:1.0", "000000000000000F000000FF000000000000002749444C3A6F6D672E6F72672F47494F502F4C6F636174655265706C794865616465723A312E300000000000124C6F636174655265706C79486561646572000000000000020000000B726571756573745F69640000000000050000000E6C6F636174655F7374617475730000000000001100000083000000000000002649444C3A6F6D672E6F72672F47494F502F4C6F63617465537461747573547970653A312E30000000000000114C6F636174655374617475735479706500000000000000030000000F554E4B4E4F574E5F4F424A45435400000000000C4F424A4543545F48455245000000000F4F424A4543545F464F525741524400", LocateReplyHeader)
#############################################################################