From fc6e884b5408d010a33f0d8dc5f9479f01a7407c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 18 May 2016 03:29:01 -0400
Subject: [PATCH] python: adapt to new owner api

---
 python/opendht.pyx     | 2 +-
 python/opendht_cpp.pxd | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/opendht.pyx b/python/opendht.pyx
index 67ff82f6..b43a3c40 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -139,7 +139,7 @@ cdef class Value(object):
     property owner:
         def __get__(self):
             h = InfoHash()
-            h._infohash = self._value.get().owner.getId()
+            h._infohash = self._value.get().owner.get().getId()
             return h
     property recipient:
         def __get__(self):
diff --git a/python/opendht_cpp.pxd b/python/opendht_cpp.pxd
index 4c726a59..f89bf4ba 100644
--- a/python/opendht_cpp.pxd
+++ b/python/opendht_cpp.pxd
@@ -86,7 +86,7 @@ cdef extern from "opendht/value.h" namespace "dht":
         Value(const uint8_t* dat_ptr, size_t dat_len) except +
         string toString() const
         uint64_t id
-        PublicKey owner
+        shared_ptr[PublicKey] owner
         InfoHash recipient
         vector[uint8_t] data
         string user_type
-- 
GitLab