[omniORB] newbie:python dictionary

Green Bryan - bgreen Bryan.Green at acxiom.com
Tue Feb 21 18:55:20 GMT 2006


Yeah, I wound up pickling the map and sending it as a string.  It was that are use ICE I was told.

-----Original Message-----
From: Luke Deller [mailto:ldeller at xplantechnology.com]
Sent: Tue 2/21/2006 5:26 PM
To: Green Bryan - bgreen
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] newbie:python dictionary
 
Hi Bryan,

On Tue, 2006-02-21 at 09:24 -0600, Green Bryan - bgreen wrote:
>    I have a python script that builds a dictionary data structure.  We
> are porting our python programs to omniORBpy and are wondering how to
> return a dictionary that will then be passed to another service?

CORBA doesn't support dictionaries.

One way to transfer python dictionaries across CORBA is to convert the
dictionary to a sequence of CORBA structs, where each struct represents
a (key, value) pair.  The dictionary can be reassembled from this at the
other end.

You can see which types are available for use with CORBA by checking out
section 3.11 of the CORBA spec:

http://www.omg.org/technology/documents/formal/corba_iiop.htm

... and you can figure out how these CORBA types map to python by
checking out section 1.3 of the python language mapping:

http://www.omg.org/technology/documents/formal/python.htm

Regards,
Luke.


**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************

***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060221/e2586f85/attachment.htm


More information about the omniORB-list mailing list