Part of lp.bugs.scripts.checkwatches.base View In Hierarchy
Known subclasses: lp.bugs.scripts.checkwatches.__init__.CheckwatchesMaster, lp.bugs.scripts.checkwatches.bugwatchupdater.BugWatchUpdater, lp.bugs.scripts.checkwatches.remotebugupdater.RemoteBugUpdater
Method | init | Undocumented |
Method | initFromParent | Undocumented |
Method | interaction | Context manager for interaction as the given user. |
Method | transaction | Context manager to ring-fence database activity. |
Method | statement_logging | Context manager to start and stop SQL statement logging. |
Method | warning | Record a warning. |
Method | error | Record an error. |
Method | _statement_logging_start | Start logging SQL statements and other database activity. |
Method | _statement_logging_stop | Stop logging SQL statements. |
Method | _statement_logging_reset | Reset the SQL statement log, if enabled. |
If an interaction is already in progress this is a no-op, otherwise it sets up an interaction on entry and ends it on exit.
Ensures that no transaction is in progress on entry, and commits on a successful exit. Exceptions are propagated once the transaction has been aborted.
This intentionally cannot be nested. Keep it simple.