callRemote syntax for operations

Bug #590542 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restfulclient.tx
New
Undecided
Unassigned

Bug Description

Programmers who are used to Twisted are used to using a syntax like:
  d = object.callRemote('operationName', arg1, arg2, named=valued)

when doing remote procedure calls. It would be nice if txrestfulclient supported such a syntax.

Other than the benefit of familiarity, the syntax also highlights network operations. In many programs, it matters a great deal whether a particular operation is networked or remote.

Revision history for this message
James Westby (james-w) wrote :

Shouldn't be too hard to implement.

At least in txrestfulclient you get Deferreds to remind you. I agree it
would be useful to be able to be more explicit though.

What about attribute lookop and the like? Should that have a callRemote
syntax too?

Thanks,

James

Revision history for this message
Jonathan Lange (jml) wrote : Re: [Bug 590542] Re: callRemote syntax for operations

On Mon, Jun 7, 2010 at 6:18 AM, James Westby <email address hidden> wrote:
...
> What about attribute lookop and the like? Should that have a callRemote
> syntax too?

I don't know, actually. I thought attribute lookup was always a local operation?

jml

Revision history for this message
James Westby (james-w) wrote :

It is, but there is lp_resolve to trigger the network access, it would be possible to
combine the two steps using callRemote.

Thanks,

James

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.