Add uuid on category

This commit is contained in:
Benjamin Renard 2014-08-17 20:54:21 +02:00 committed by root
parent 0bdae5c0f4
commit 87622d7cd3

View file

@ -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