python: adapt to new owner api

This commit is contained in:
Adrien Béraud committed 2016-05-18 03:29:01 -04:00
1 parent 9d7f6d287a
commit fc6e884b54
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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