Question about serializing any IDL type objects in Python shelves

D. Lopez-De-Ipina dl231 at eng.cam.ac.uk
Tue Aug 3 19:26:44 CEST 1999


Hi,

I am trying to make a server store objects of IDL type
objectDetails(shown
bellow) in a Python shelve. Note the member propertyValue of structure
Property could represent any IDL type, even user defined IDL structures
that the TRIPServer doesn't know. I wonder if due to the dyanmic
properties of Python it would still be possible to serialize these
objects
or the CORBA 2.2 DynAny interface help would be required to achieve
that.

struct Property {
  string propertyName;
  any propertyValue;
};
typedef sequence<Property> PropertyList;

struct objectDetails {
  string label;
  PropertyList propertyList;
};

Thanks a lot,

Diego





More information about the Python-list mailing list