gnue-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe-dev] [RFE] new procedure method


From: Reinhard Mueller
Subject: Re: [GNUe-dev] [RFE] new procedure method
Date: Tue, 21 Feb 2006 09:06:39 +0100

Am Montag, den 20.02.2006, 16:17 +0100 schrieb Malek Hadj-Ali:
> i'd like to, say, send back some info to users after a procedure
> completed correctly.
> 
> now, i know i can just return some message and deal with it client side,
> but i thought it would be convenient to have a standard way to do this.

Actually I consider returning a string as a function result a way of
doing this with a rather low overhead.

> ie if the client receive an xmlrcpc.fault with faultCode=99 instead of 1
> (or an InfoRequest instead of an AbortRequest error class), then it
> knows it's not a "real" error and can display it differently than one
> (not in a dialog but in a status bar for example).

AFAICT, an XMLRPC procedure can only return *either* a function result
*or* a fault code, so we wouldn't win anything in this respect. And for
returning in case of success, I am kinda reluctant to abuse the
exception mechanism for that.

I consider something like
  setStatusText (blkFoo.call ("bar", {}))
a clean and straightforward way of getting a string information from the
procedure.

Thanks,
Reinhard

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]