Skip to content
Snippets Groups Projects
Unverified Commit 7197c1fb authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

python: expose user_type member of Value

parent c10e04d5
Branches
Tags
No related merge requests found
...@@ -187,6 +187,11 @@ cdef class Value(object): ...@@ -187,6 +187,11 @@ cdef class Value(object):
return string(<char*>self._value.get().data.data(), self._value.get().data.size()) return string(<char*>self._value.get().data.data(), self._value.get().data.size())
def __set__(self, bytes value): def __set__(self, bytes value):
self._value.get().data = value self._value.get().data = value
property user_type:
def __get__(self):
return self._value.get().user_type.decode()
def __set__(self, str t):
self._value.get().user_type = t.encode()
property id: property id:
def __get__(self): def __get__(self):
return self._value.get().id return self._value.get().id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment