From 5eb0dd2aa5e5e4d07da0b8f663bb3f2f77bc19e5 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 5 Oct 2012 03:24:08 +0200 Subject: make soapi usable for non-krebs urls --- ovh/soapi/domainCapabilities | 3 ++- ovh/soapi/domainInfo | 3 ++- ovh/soapi/zoneEntryList | 3 ++- ovh/soapi/zoneExport | 3 ++- ovh/soapi/zoneImport | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'ovh/soapi') diff --git a/ovh/soapi/domainCapabilities b/ovh/soapi/domainCapabilities index dad8311d..a438e0b8 100755 --- a/ovh/soapi/domainCapabilities +++ b/ovh/soapi/domainCapabilities @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.domainCapabilities(session, 'krebsco.de') +result = soap.domainCapabilities(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/domainInfo b/ovh/soapi/domainInfo index e32262e1..35459d06 100755 --- a/ovh/soapi/domainInfo +++ b/ovh/soapi/domainInfo @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.domainInfo(session, 'krebsco.de') +result = soap.domainInfo(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/zoneEntryList b/ovh/soapi/zoneEntryList index af37c112..63d0f1c6 100755 --- a/ovh/soapi/zoneEntryList +++ b/ovh/soapi/zoneEntryList @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.zoneEntryList(session, 'krebsco.de') +result = soap.zoneEntryList(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/zoneExport b/ovh/soapi/zoneExport index 7659d647..7747ded4 100755 --- a/ovh/soapi/zoneExport +++ b/ovh/soapi/zoneExport @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.zoneExport(session, 'krebsco.de') +result = soap.zoneExport(session, domain) print result soap.logout(session) diff --git a/ovh/soapi/zoneImport b/ovh/soapi/zoneImport index 141fb4a2..42d46caf 100755 --- a/ovh/soapi/zoneImport +++ b/ovh/soapi/zoneImport @@ -21,12 +21,13 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') zone = join(stdin.readlines(),'') session = soap.login(username, password, 'en', 0) -result = soap.zoneImport(session, 'krebsco.de', zone) +result = soap.zoneImport(session, domain, zone) print result soap.logout(session) -- cgit v1.2.3