From: Tony Mack Date: Sat, 2 May 2009 03:11:36 +0000 (+0000) Subject: in methods/__init__.py list of callable methods now called 'all', used to be 'methods' X-Git-Tag: sfa-0.9-0@14641~426 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=83ef0ae4f4a4c7b0cebb3563309da4fcafe182fc;hp=34ae6acfdd362cc1a5b0085fe04391718e0727f0;p=sfa.git in methods/__init__.py list of callable methods now called 'all', used to be 'methods' --- diff --git a/geni/util/api.py b/geni/util/api.py index 8adcecb2..b6851c49 100644 --- a/geni/util/api.py +++ b/geni/util/api.py @@ -83,7 +83,6 @@ try: except ImportError: SOAPpy = None -import geni.methods def import_deep(name): mod = __import__(name) @@ -95,7 +94,8 @@ def import_deep(name): class GeniAPI: # flat list of method names - methods = geni.methods.methods + import geni.methods + methods = geni.methods.all def __init__(self, config = "/etc/geni/geni_config", encoding = "utf-8", peer_cert = None, interface = None, key_file = None, cert_file = None): self.encoding = encoding @@ -305,7 +305,6 @@ class GeniAPI: # convert ids to hrns pl_record = pl_res[0] - print pl_record if 'site_id' in pl_record: sites = self.plshell.GetSites(self.plauth, pl_record['site_id'], ['login_base']) site = sites[0]