Example #1
0
 def merge(self, armyCollection, user=None):
     armyCollection = [objectId(i) for i in armyCollection]
     collection = Army_Factory.getByIds(armyCollection)
     return super().merge(collection, user)
Example #2
0
 def removeSolidersFromGeneral(self, generalArmy, solidersCollection, user=None):
     solidersCollection = [objectId(i) for i in solidersCollection]
     domain = Army_Factory.get(generalArmy)
     collection = Army_Factory.getByIds(solidersCollection)
     return super().removeSolidersFromGeneral(domain, collection, user)