<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.39">
<TITLE>RE: [omniORB] newbie:python dictionary</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Yeah, I wound up pickling the map and sending it as a string.&nbsp; It was that are use ICE I was told.<BR>
<BR>
-----Original Message-----<BR>
From: Luke Deller [<A HREF="mailto:ldeller@xplantechnology.com">mailto:ldeller@xplantechnology.com</A>]<BR>
Sent: Tue 2/21/2006 5:26 PM<BR>
To: Green Bryan - bgreen<BR>
Cc: omniorb-list@omniorb-support.com<BR>
Subject: Re: [omniORB] newbie:python dictionary<BR>
<BR>
Hi Bryan,<BR>
<BR>
On Tue, 2006-02-21 at 09:24 -0600, Green Bryan - bgreen wrote:<BR>
&gt;&nbsp;&nbsp;&nbsp; I have a python script that builds a dictionary data structure.&nbsp; We<BR>
&gt; are porting our python programs to omniORBpy and are wondering how to<BR>
&gt; return a dictionary that will then be passed to another service?<BR>
<BR>
CORBA doesn't support dictionaries.<BR>
<BR>
One way to transfer python dictionaries across CORBA is to convert the<BR>
dictionary to a sequence of CORBA structs, where each struct represents<BR>
a (key, value) pair.&nbsp; The dictionary can be reassembled from this at the<BR>
other end.<BR>
<BR>
You can see which types are available for use with CORBA by checking out<BR>
section 3.11 of the CORBA spec:<BR>
<BR>
<A HREF="http://www.omg.org/technology/documents/formal/corba_iiop.htm">http://www.omg.org/technology/documents/formal/corba_iiop.htm</A><BR>
<BR>
... and you can figure out how these CORBA types map to python by<BR>
checking out section 1.3 of the python language mapping:<BR>
<BR>
<A HREF="http://www.omg.org/technology/documents/formal/python.htm">http://www.omg.org/technology/documents/formal/python.htm</A><BR>
<BR>
Regards,<BR>
Luke.<BR>
<BR>
<BR>
**********************************************************************************************<BR>
<BR>
Important Note<BR>
This email (including any attachments) contains information which is<BR>
confidential and may be subject to legal privilege.&nbsp; If you are not<BR>
the intended recipient you must not use, distribute or copy this<BR>
email.&nbsp; If you have received this email in error please notify the<BR>
sender immediately and delete this email. Any views expressed in this<BR>
email are not necessarily the views of XPlan Technology.<BR>
<BR>
It is the duty of the recipient to virus scan and otherwise test the<BR>
information provided before loading onto any computer system.<BR>
Xplan Technology does not warrant that the<BR>
information is free of a virus or any other defect or error.<BR>
**********************************************************************************************<BR>
<BR>
</FONT>
</P>

<pre>***************************************************************************
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.
****************************************************************************
</pre></BODY>
</HTML>