Benjamin Renard commited on 2014-08-17 18:54:26
Showing 1 changed files, with 3 additions and 0 deletions.
... | ... |
@@ -316,17 +316,20 @@ class Contributor(object): |
316 | 316 |
class Category(object): |
317 | 317 |
|
318 | 318 |
def __init__(self): |
319 |
+ self.uuid=None |
|
319 | 320 |
self.name=None |
320 | 321 |
self.color=None |
321 | 322 |
self.lastChange=None |
322 | 323 |
|
323 | 324 |
def load(self,data): |
325 |
+ self.uuid=data.get('uuid',None) |
|
324 | 326 |
self.name=data.get('name',None) |
325 | 327 |
self.color=data.get('color',None) |
326 | 328 |
self.lastChange=data.get('lastChange',None) |
327 | 329 |
|
328 | 330 |
def export(self): |
329 | 331 |
ret={ |
332 |
+ 'uuid': self.uuid, |
|
330 | 333 |
'name': self.name, |
331 | 334 |
'color': self.color, |
332 | 335 |
'lastChange': self.lastChange |
333 | 336 |