ValueError: unpack tuple of wrong size???
Dag Sunde
dag at orion.no
Fri May 19 07:55:43 EDT 2000
I found the solution... Thanks to you both; Oleg & Fredrik...)
When the idl defines it like:
boolean LoginToMarket
(
out long lLoginId,
out Object supplier)
raises (NoAccess);
...where both parameters are out-values, and the method has a
return-value, it should be called without any parameters, and
returns a list with the return-value at position 0, and the
parameters following in the defined order...
[Dbg]>>> print self.m_pElTermin.LoginToMarket()
(1, 6, <omniORB.CORBA.Object instance at 1871cf0>)
[Dbg]>>>
Dag...
"Oleg Broytmann" <phd at phd.russ.ru> wrote in message
news:Pine.LNX.4.21.0005191017170.493-100000 at fep132.fep.ru...
> On Fri, 19 May 2000, Dag Sunde wrote:
> > Question:
> > When a method has a boolean return, and two output-params, how
do I
> > call it?
>
> I think you must pass two Buffer objects, that will get filled upon
> return; the return value should be one boolean...
>
> Oleg. (All opinions are mine and not of my employer)
> ----
> Oleg Broytmann Foundation for Effective Policies
phd at phd.russ.ru
> Programmers don't die, they just GOSUB without RETURN.
>
>
More information about the Python-list
mailing list