| 265 | | changed_rows = self.getChangedRows() |
|---|
| 266 | | for row in changed_rows: |
|---|
| 267 | | self._moveToRowNum(row) |
|---|
| 268 | | try: |
|---|
| 269 | | self.save(startTransaction=False, topLevel=False) |
|---|
| 270 | | except dException.ConnectionLostException, e: |
|---|
| 271 | | self.RowNumber = current_row |
|---|
| 272 | | raise dException.ConnectionLostException, e |
|---|
| 273 | | except dException.DBQueryException, e: |
|---|
| 274 | | # Something failed; reset things. |
|---|
| 275 | | if useTransact: |
|---|
| 276 | | cursor.rollbackTransaction() |
|---|
| 277 | | # Pass the exception to the UI |
|---|
| 278 | | self.RowNumber = current_row |
|---|
| 279 | | raise dException.DBQueryException, e |
|---|
| 280 | | except dException.dException, e: |
|---|
| 281 | | if useTransact: |
|---|
| 282 | | cursor.rollbackTransaction() |
|---|
| 283 | | self.RowNumber = current_row |
|---|
| 284 | | raise |
|---|
| | 265 | try: |
|---|
| | 266 | self.scanChangedRows(self.save, startTransaction=False, topLevel=False) |
|---|
| | 267 | except dException.ConnectionLostException, e: |
|---|
| | 268 | self.RowNumber = current_row |
|---|
| | 269 | raise dException.ConnectionLostException, e |
|---|
| | 270 | except dException.DBQueryException, e: |
|---|
| | 271 | # Something failed; reset things. |
|---|
| | 272 | if useTransact: |
|---|
| | 273 | cursor.rollbackTransaction() |
|---|
| | 274 | # Pass the exception to the UI |
|---|
| | 275 | self.RowNumber = current_row |
|---|
| | 276 | raise dException.DBQueryException, e |
|---|
| | 277 | except dException.dException, e: |
|---|
| | 278 | if useTransact: |
|---|
| | 279 | cursor.rollbackTransaction() |
|---|
| | 280 | self.RowNumber = current_row |
|---|
| | 281 | raise |
|---|