[AG-TECH] Small problem with Python environment.
turam at mcs.anl.gov
Fri Jan 22 12:40:45 CST 2010
There's updated but yet incomplete developer documentation here:
with enough examples to get Josh much further.
I'd be happy to answer questions as he goes along. It sounds like an
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.
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
> # import pyGlobus.ioc
> import agversion
> from AccessGrid.Toolkit import CmdlineApplication
> from AccessGrid.Venue import VenueIW
> url = sys.argv
> # Create and initialize application
> app = CmdlineApplication()
> # Create venue interface wrapper
> venue = VenueIW('https://vv3.mcs.anl.gov:8000/Venues/default')
> 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...
More information about the ag-tech