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):
def __init__(self):
self.uuid=None
self.name=None
self.color=None
self.lastChange=None
def load(self,data):
self.uuid=data.get('uuid',None)
self.name=data.get('name',None)
self.color=data.get('color',None)
self.lastChange=data.get('lastChange',None)
def export(self):
ret={
'uuid': self.uuid,
'name': self.name,
'color': self.color,
'lastChange': self.lastChange