From 0264f312c048988c54d85d619ba49e5d0c209006 Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Wed, 27 Jul 2011 14:23:28 +0000 Subject: [PATCH] Small update to SOAP tool. git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/branches/gbinfo-sync-branch@319 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1 --- extras/soap-tools/getcache.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/extras/soap-tools/getcache.py b/extras/soap-tools/getcache.py index 45e0be3e..ecfae650 100755 --- a/extras/soap-tools/getcache.py +++ b/extras/soap-tools/getcache.py @@ -16,7 +16,7 @@ import sys from datetime import datetime, timedelta from suds.client import Client -URL = 'http://localhost/mutalyzer/services/?wsdl' +URL = 'http://zwarterita/mutalyzer/services/?wsdl' c = Client(URL, cache=None) o = c.service @@ -35,8 +35,8 @@ if cache: for r in cache.CacheEntry: print r.name if 'gi' in r: - print r.gi - print r.hash + print 'GI: %s' % r.gi + print 'Hash: %s' % r.hash if 'chromosomeName' in r: print r.chromosomeName if 'chromosomeStart' in r: @@ -47,9 +47,7 @@ if cache: print r.chromosomeOrientation if 'url' in r: print r.url - print r.created - if r.cached: - print 'cached' - else: - print 'not cached' + print 'Created: %s' % r.created + if 'cached' in r: + print 'Cached as %s' % r.cached print -- GitLab