[omniORB] Python implementation skeleton generator available.

Duncan Grisby dgrisby@uk.research.att.com
Fri, 28 Sep 2001 14:14:05 +0100


On Sunday 23 September, Richard Gruet wrote:

> I have written a Python utility named 'ipy' that generates Python
> implementation skeletons from IDL interfaces. Here is an excerpt of the
> manual:

This looks great!  It's something I've had in mind to do for a while,
so you've saved me the effort. I haven't had a chance to play with it
yet, but it looks useful.

One very minor comment. At the end of the manual, you say

  "I'd also like to create an Omniidl backend version of ipy, so a
   command like: omniidl -bipy mySource.idl is possible. The main
   problem in this case is how to pass the parameters to ipy. Omniidl
   provides the option -Wb to pass parameters, but it is not
   convenient if you use more than one backend in the omniidl command
   (e.g. omniidl -bpython -bipy -Wbarg,arg..). How to dispatch args to
   the right backend ? And even if we decide than ipy cannot be used
   with another backend, some ipy arguments don't accomodate easily the
   -Wb option syntax."

The -Wb arguments are always given to the previously specified
back-end, so you could do something like

  omniidl -bpython -Wbinline -bipy -Wbsort=A foo.idl

Which gives the "inline" argument to the python back-end and "sort=A"
to the ipy back-end.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --