From 175b4c94914c41e90347677f2f8784fefb913201 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Sat, 9 Jan 2016 16:03:39 -0500
Subject: [PATCH] python: add Value.id proprety

---
 python/opendht.pyx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/opendht.pyx b/python/opendht.pyx
index 408f1b90..397c4c1a 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -157,6 +157,11 @@ cdef class Value(object):
             return string(<char*>self._value.get().data.data(), self._value.get().data.size())
         def __set__(self, bytes value):
             self._value.get().data = value
+    property id:
+        def __get__(self):
+            return self._value.get().id
+        def __set__(self, cpp.uint64_t value):
+            self._value.get().id = value
 
 cdef class NodeSetIter(object):
     cdef map[cpp.InfoHash, cpp.shared_ptr[cpp.Node]]* _nodes
-- 
GitLab