(self, *commands)
| 27 | return self.__buffer.Submit(command) |
| 28 | |
| 29 | def submitBatch(self, *commands): |
| 30 | for command in commands: |
| 31 | if not self.__buffer.Submit(command): |
| 32 | # Undo what we already submitted |
| 33 | for commandToUndo in reversed(self.__buffer.Commands): |
| 34 | if commandToUndo in commands: |
| 35 | self.__buffer.Undo() |
| 36 | return False |
| 37 | return True |
| 38 | |
| 39 | def undoAll(self): |
| 40 | undoneCommands = [] |