diff --git a/lib/ucoin/registry/community/members.py b/lib/ucoin/registry/community/members.py index f3aa6e62cdaf9e35ccef880c47e67017304cfd42..4b8d5bd47d9a92f34342eef306c1184526134994 100644 --- a/lib/ucoin/registry/community/members.py +++ b/lib/ucoin/registry/community/members.py @@ -14,13 +14,13 @@ # # -from .. import Registry +from . import Base from .. import logging logger = logging.getLogger("ucoin/registry/community") -class Current(Registry): +class Current(Base): """GET the last valid membership document for member pgp_fingerprint""" def __init__(self, pgp_fingerprint=None, server=None, port=None): @@ -40,7 +40,7 @@ class Current(Registry): **kwargs).json() -class History(Registry): +class History(Base): """GET the all received and stored membership documents""" def __init__(self, pgp_fingerprint=None, server=None, port=None): diff --git a/lib/ucoin/registry/community/voters.py b/lib/ucoin/registry/community/voters.py index 9f403502f137772bba3cf67b4b4039542efdc3bc..4a0420645ef2500de81a80821b09ff90842ef67b 100644 --- a/lib/ucoin/registry/community/voters.py +++ b/lib/ucoin/registry/community/voters.py @@ -14,17 +14,11 @@ # # -from .. import Registry +from . import Base from .. import logging logger = logging.getLogger("ucoin/registry/community") - -class Base(Registry): - def __init__(self, server=None, port=None): - super().__init__('hdc/registry/community', server, port) - - class Current(Base): """GET the last valid membership document for member pgp_fingerprint""" @@ -36,7 +30,7 @@ class Current(Base): - `number`: amendment number """ - super().__init__(server, port) + super().__init__(server=server, port=port) self.pgp_fingerprint = pgp_fingerprint @@ -56,7 +50,7 @@ class History(Base): - `number`: amendment number """ - super().__init__(server, port) + super().__init__(server=server, port=port) self.pgp_fingerprint = pgp_fingerprint