[omniORB] [omniORBpy3] about boxes.idl

JiangWei jw.omni at sduept.com
Thu Sep 7 14:44:17 BST 2006


(1)  omniORBpy3b2 didn't compile boxes.idl during install

[jw at sparc test]$ echo "#include <orb.idl>" >a.idl
[jw at 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.
[jw at sparc test]$ export 
PYTHONPATH=/usr/local/lib/python2.4/site-packages/omniORB
[jw at 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)






More information about the omniORB-list mailing list