+

Add uuid on category

Benjamin Renard [2014-08-17 18:54:21]
Add uuid on category
Filename
mycoserver/group.py
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
ViewGit