Re: Pyrolite and JavaScript in browser

Irmen de Jong <[email protected]> Sun, 08 Mar 2015 10:55:06 +0100
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 8-3-2015 9:42, Richard wrote:
> It is still not clear to me. If I run nsc and the echoserver is running, 
> I get:
> RMA:build richard$ python -m Pyro4.nsc list
> --------START LIST
> Pyro.NameServer --> PYRO:[email protected]:9090
> example.cserv --> PYRO:obj_5606266fe3b44e9294bbd92d58c13a5f-savSHZN5Fh8qMp+WYRx65w@public.gmane.org:63615
> 
> What do I enter then in the URL?

I'm sorry, but why/what is unclear?

The docs clearly state: "http://localhost:8080/pyro/<<objectname>>/<<method>>" and
"Parameters are passed via a regular query string parameter list (in case of a GET
request) or via form post parameters (in case of a POST request). "

And you can see a few working examples right there in the browser page of the gateway,
for instance to call the list method of the name server:
http://localhost:8080/pyro/Pyro.NameServer/list

(assuming the gateway runs on localhost:8080 and Pyro.* is exposed)


Irmen


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/