From 6891502d1eb47f3db824ee25a8d978284f3e75e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 18 Oct 2015 17:12:53 +0200 Subject: Multi-hoster accounts now extend MultiAccount class --- module/plugins/accounts/RPNetBiz.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'module/plugins/accounts/RPNetBiz.py') diff --git a/module/plugins/accounts/RPNetBiz.py b/module/plugins/accounts/RPNetBiz.py index 3b814debc..63f2b4d72 100644 --- a/module/plugins/accounts/RPNetBiz.py +++ b/module/plugins/accounts/RPNetBiz.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -from module.plugins.internal.Account import Account -from module.common.json_layer import json_loads +from module.plugins.internal.MultiAccount import MultiAccount +from module.plugins.internal.utils import json -class RPNetBiz(Account): +class RPNetBiz(MultiAccount): __name__ = "RPNetBiz" __type__ = "account" __version__ = "0.17" @@ -24,7 +24,7 @@ class RPNetBiz(Account): get={'username': user, 'password': password, 'action' : "showHosterList"}) - hoster_list = json_loads(res) + hoster_list = json.loads(res) #: If account is not valid thera are no hosters available if 'error' in hoster_list: @@ -68,4 +68,4 @@ class RPNetBiz(Account): 'action': "showAccountInformation"}) self.log_debug("JSON data: %s" % res) - return json_loads(res) + return json.loads(res) -- cgit v1.2.3