def merge(self, armyCollection, user=None): armyCollection = [objectId(i) for i in armyCollection] collection = Army_Factory.getByIds(armyCollection) return super().merge(collection, user)
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)