#! /usr/bin/python

from __future__ import print_function
import sys
import logging
import icat
import icat.config

logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)

conf = icat.config.Config(needlogin=False).getconfig()

client = icat.Client(conf.url, **conf.client_kwargs)
print("Python %s\n" % (sys.version))
print("python-icat version %s (%s)\n" % (icat.__version__, icat.__revision__))
print("Connect to %s\nICAT version %s\n" % (conf.url, client.apiversion))

#! /usr/bin/python

from __future__ import print_function
import sys
import logging
import icat
import icat.config

logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)

conf = icat.config.Config(needlogin=False, ids="optional").getconfig()

client = icat.Client(conf.url, **conf.client_kwargs)
print("Python %s\n" % (sys.version))
print("python-icat version %s (%s)\n" % (icat.__version__, icat.__revision__))
print("Connect to %s\nICAT version %s\n" % (conf.url, client.apiversion))
if client.ids:
    print("Connect to %s\nIDS version %s\n" 
          % (conf.idsurl, client.ids.apiversion))

Connect also to the IDS (if idsurl is set) and report its version.
Connect also to the IDS (if idsurl is set) and report its version.

git-svn-id: 5b1347ddac5aba1438c637217dfe0bb137609099@844 8efdbd46-c5fb-49ab-9956-99f62928ec21
