Skip to content
Snippets Groups Projects
Commit e459883e authored by inso's avatar inso
Browse files

Merge branch 'master' of https://github.com/Insoleet/ucoin-python-api into dev

parents 322692b7 f3340a71
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment