|
@@ -196,6 +196,7 @@ class EmComponent(object):
|
196
|
196
|
c.close()
|
197
|
197
|
|
198
|
198
|
self.rank = new_rank
|
|
199
|
+ self.save()
|
199
|
200
|
else:
|
200
|
201
|
logger.error("Bad argument")
|
201
|
202
|
raise ValueError('new_rank to big, new_rank - 1 doesn\'t exist. new_rank = '+str((new_rank)))
|
|
@@ -218,6 +219,7 @@ class EmComponent(object):
|
218
|
219
|
c.close()
|
219
|
220
|
|
220
|
221
|
self.rank += new_rank
|
|
222
|
+ self.save()
|
221
|
223
|
else:
|
222
|
224
|
logger.error("Bad argument")
|
223
|
225
|
raise ValueError('Excepted a positive int not a null. new_rank = '+str((new_rank)))
|
|
@@ -240,6 +242,7 @@ class EmComponent(object):
|
240
|
242
|
c.close()
|
241
|
243
|
|
242
|
244
|
self.rank -= new_rank
|
|
245
|
+ self.save()
|
243
|
246
|
else:
|
244
|
247
|
logger.error("Bad argument")
|
245
|
248
|
raise ValueError('Excepted a positive int not a null. new_rank = '+str((new_rank)))
|