[AG-TECH] Small problem with Python environment.
Thomas Uram
turam at mcs.anl.gov
Fri Jan 22 12:40:45 CST 2010
There's updated but yet incomplete developer documentation here:
http://accessgrid.org/developer
with enough examples to get Josh much further.
I'd be happy to answer questions as he goes along. It sounds like an
interesting project.
A couple things:
- the script below works for me. the updated VenueIW does not have a
GetClients method, but one can do GetState().clients
- use of languages besides Python is also possible, given the WSDL URL
of AG services (e.g., https://vv3.mcs.anl.gov:8000/Venues/default?
WSDL ). There's a PHP example in the docs mentioned above; I know
other people have used Java.
Tom
On Jan 22, 2010, at 11:44 AM, Jimmy Miklavcic wrote:
> import sys
> #if sys.platform == "darwin":
> # OSX: pyGlobus/globus need to be loaded before modules such as
> socket.
> # import pyGlobus.ioc
>
> import agversion
> agversion.select(3)
>
> from AccessGrid.Toolkit import CmdlineApplication
> from AccessGrid.Venue import VenueIW
>
> url = sys.argv[1]
>
> # Create and initialize application
> app = CmdlineApplication()
> app.Initialize('GetClients')
> # Create venue interface wrapper
> venue = VenueIW('https://vv3.mcs.anl.gov:8000/Venues/default')
> #url)
>
> venueState = venue.GetState()
> print venueState
>
> # Get clients from venue and process
> #clientList = venue.GetClients()
> #for client in clientList:
> # print client
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/ag-tech/attachments/20100122/b56d8934/attachment.htm>
More information about the ag-tech
mailing list