Add uuid on category
This commit is contained in:
parent
0bdae5c0f4
commit
87622d7cd3
1 changed files with 3 additions and 0 deletions
|
@ -316,17 +316,20 @@ class Contributor(object):
|
||||||
class Category(object):
|
class Category(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.uuid=None
|
||||||
self.name=None
|
self.name=None
|
||||||
self.color=None
|
self.color=None
|
||||||
self.lastChange=None
|
self.lastChange=None
|
||||||
|
|
||||||
def load(self,data):
|
def load(self,data):
|
||||||
|
self.uuid=data.get('uuid',None)
|
||||||
self.name=data.get('name',None)
|
self.name=data.get('name',None)
|
||||||
self.color=data.get('color',None)
|
self.color=data.get('color',None)
|
||||||
self.lastChange=data.get('lastChange',None)
|
self.lastChange=data.get('lastChange',None)
|
||||||
|
|
||||||
def export(self):
|
def export(self):
|
||||||
ret={
|
ret={
|
||||||
|
'uuid': self.uuid,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'color': self.color,
|
'color': self.color,
|
||||||
'lastChange': self.lastChange
|
'lastChange': self.lastChange
|
||||||
|
|
Loading…
Reference in a new issue