From 87622d7cd34753585e5c4e76c9c8c411feb891c2 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 17 Aug 2014 20:54:21 +0200 Subject: [PATCH] Add uuid on category --- mycoserver/group.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mycoserver/group.py b/mycoserver/group.py index 91a8683..3f1b8cb 100644 --- a/mycoserver/group.py +++ b/mycoserver/group.py @@ -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