From 272f688c1fc9437d815977640ee33f4bd1e21ffb Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Fri, 23 May 2014 13:38:03 +0200
Subject: [PATCH] Adding post request to members and voters

---
 ucoin/registry/community/__init__.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ucoin/registry/community/__init__.py b/ucoin/registry/community/__init__.py
index 09712575..b7f2d37b 100644
--- a/ucoin/registry/community/__init__.py
+++ b/ucoin/registry/community/__init__.py
@@ -30,6 +30,12 @@ class Members(Base):
     def __get__(self, **kwargs):
         return self.merkle_easy_parser('/members')
 
+    def __post__(self, **kwargs):
+        assert 'entry' in kwargs
+        assert 'signature' in kwargs
+
+        return self.requests_post('/members', **kwargs)
+
 
 class Voters(Base):
     """GET the voters listed in this amendment."""
@@ -37,5 +43,12 @@ class Voters(Base):
     def __get__(self, **kwargs):
         return self.merkle_easy_parser('/voters')
 
+    def __post__(self, **kwargs):
+        assert 'entry' in kwargs
+        assert 'signature' in kwargs
+
+        return self.requests_post('/voters', **kwargs)
+
+
 from . import members
 from . import voters
-- 
GitLab