JiangWei
2006-09-07 11:45:12 UTC
(1) omniORBpy3b2 didn't compile boxes.idl during install
[***@sparc test]$ echo "#include <orb.idl>" >a.idl
[***@sparc test]$ omniidl -bpython -I/usr/local/share/idl/omniORB a.idl
corbaidl.idl:15: Warning: Forward declared interface 'CORBA::IDLType'
was never fully defined
omniidl: 1 warning.
[***@sparc test]$ export
PYTHONPATH=/usr/local/lib/python2.4/site-packages/omniORB
[***@sparc test]$ python
Python 2.4.3 (#1, Sep 5 2006, 09:59:27) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1, in ?
File "a_idl.py", line 19, in ?
import boxes_idl
ImportError: No module named boxes_idl
(2) StringValue and WStringValue were defined again in CORBA.py :
#############################################################################
#
#
# StringValue,
WStringValue #
#
#
#############################################################################
class StringValue:
_NP_RepositoryId = "IDL:omg.org/CORBA/StringValue:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_d_StringValue = (tcInternal.tv_value_box, StringValue,
StringValue._NP_RepositoryId, "StringValue", (tcInternal.tv_string,0))
_tc_StringValue = tcInternal.createTypeCode(_d_StringValue)
omniORB.registerType(StringValue._NP_RepositoryId, _d_StringValue,
_tc_StringValue)
omniORB.registerValueFactory(StringValue._NP_RepositoryId, StringValue)
class WStringValue:
_NP_RepositoryId = "IDL:omg.org/CORBA/WStringValue:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_d_WStringValue = (tcInternal.tv_value_box, WStringValue,
WStringValue._NP_RepositoryId, "WStringValue", (tcInternal.tv_wstring,0))
_tc_WStringValue = tcInternal.createTypeCode(_d_WStringValue)
omniORB.registerType(WStringValue._NP_RepositoryId, _d_WStringValue,
_tc_WStringValue)
omniORB.registerValueFactory(WStringValue._NP_RepositoryId, WStringValue)
[***@sparc test]$ echo "#include <orb.idl>" >a.idl
[***@sparc test]$ omniidl -bpython -I/usr/local/share/idl/omniORB a.idl
corbaidl.idl:15: Warning: Forward declared interface 'CORBA::IDLType'
was never fully defined
omniidl: 1 warning.
[***@sparc test]$ export
PYTHONPATH=/usr/local/lib/python2.4/site-packages/omniORB
[***@sparc test]$ python
Python 2.4.3 (#1, Sep 5 2006, 09:59:27) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
import a_idl
Traceback (most recent call last):File "<stdin>", line 1, in ?
File "a_idl.py", line 19, in ?
import boxes_idl
ImportError: No module named boxes_idl
(2) StringValue and WStringValue were defined again in CORBA.py :
#############################################################################
#
#
# StringValue,
WStringValue #
#
#
#############################################################################
class StringValue:
_NP_RepositoryId = "IDL:omg.org/CORBA/StringValue:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_d_StringValue = (tcInternal.tv_value_box, StringValue,
StringValue._NP_RepositoryId, "StringValue", (tcInternal.tv_string,0))
_tc_StringValue = tcInternal.createTypeCode(_d_StringValue)
omniORB.registerType(StringValue._NP_RepositoryId, _d_StringValue,
_tc_StringValue)
omniORB.registerValueFactory(StringValue._NP_RepositoryId, StringValue)
class WStringValue:
_NP_RepositoryId = "IDL:omg.org/CORBA/WStringValue:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_d_WStringValue = (tcInternal.tv_value_box, WStringValue,
WStringValue._NP_RepositoryId, "WStringValue", (tcInternal.tv_wstring,0))
_tc_WStringValue = tcInternal.createTypeCode(_d_WStringValue)
omniORB.registerType(WStringValue._NP_RepositoryId, _d_WStringValue,
_tc_WStringValue)
omniORB.registerValueFactory(WStringValue._NP_RepositoryId, WStringValue)