Re: Return value from CallMethod, default callback

2009-01-08 Thread Alan Kligman
ack it receives, where to pass the return value, then that is more useful and safe. On Jan 8, 3:48 pm, Pavel Shramov wrote: > On Thu, Jan 08, 2009 at 10:00:35AM -0800, Alan Kligman wrote: > > That's one way to do it. You can do one better( without threading, > > that is ) like th

Re: Return value from CallMethod, default callback

2009-01-08 Thread Alan Kligman
alue later and actually return it. alan On Jan 8, 2:46 am, Pavel Shramov wrote: > On Wed, Jan 07, 2009 at 06:23:31PM -0800, Alan Kligman wrote: > > > I poked around a bit and the code above isn't correct (for a couple of > > reasons). But the question remains: should stubs

Re: Return value from CallMethod, default callback

2009-01-07 Thread Alan Kligman
gt; the callback, the RPC implementation should block until completion and then > return the result. Does that seem like what you want? > > On Wed, Jan 7, 2009 at 6:23 PM, Alan Kligman wrote: > > > I poked around a bit and the code above isn't correct (for a couple of &g

Re: Return value from CallMethod, default callback

2009-01-07 Thread Alan Kligman
I poked around a bit and the code above isn't correct (for a couple of reasons). But the question remains: should stubs be generated that return the response down the callstack instead of passing it through a callback function? On Jan 7, 5:59 pm, Alan Kligman wrote: > Does it make

Return value from CallMethod, default callback

2009-01-07 Thread Alan Kligman
Does it make sense to change stub.rpc_channel.CallMethod( method_descriptor, rpc_controller, request, method_descriptor.output_type._concrete_class, callback) to return stub.rpc_channel.CallMethod( method_descriptor, rpc_controller, request, method_descri

Re: protoc and python imports

2008-10-29 Thread Alan Kligman
ay to specify the python > package explicitly in the .proto file, similar to the java_package option, > rather than just inferring it from the location of the .proto file. > > On Tue, Oct 28, 2008 at 7:49 AM, Alan Kligman <[EMAIL PROTECTED]>wrote: > > > > > I need th

Re: protoc and python imports

2008-10-28 Thread Alan Kligman
ative to the importing file. > > On Sat, Oct 25, 2008 at 7:11 PM, Alan Kligman <[EMAIL PROTECTED]>wrote: > > > > > I'm having a problem with protoc where python imports are not done > > correctly. Here's the situation: > > > I have a dir

Re: Standard for RPC proto

2008-10-28 Thread Alan Kligman
Authentication doesn't really belong here. You should either use an authenticated transport (like HTTPS), or in the layer above (this is what I'm currently doing). On Oct 27, 8:54 pm, "Paul P. Komkoff Jr" <[EMAIL PROTECTED]> wrote: > On 26 окт, 02:53, Alan Klig

Re: Standard for RPC proto

2008-10-25 Thread Alan Kligman
I haven't had much to add recently. Protobuf-rpc is based heavily on json-rpc, so there's really nothing new behind it. It works well for my own use and is generic enough to probably work well for most other people. Is there a great deal of interest in devising a standard rpc protocol definition?

protoc and python imports

2008-10-25 Thread Alan Kligman
I'm having a problem with protoc where python imports are not done correctly. Here's the situation: I have a directory structure like this: proto/a.proto proto/a/b.proto proto/a/c.proto a.proto provides some common definitions for both b.proto and c.proto. I build the output like this: protoc