Part of lp.bugs.scripts.checkwatches.remotebugupdater View In Hierarchy
Known subclasses: lp.bugs.scripts.checkwatches.tests.test_core.NoBugWatchesByRemoteBugUpdater, lp.bugs.scripts.tests.test_bugimport.TestRemoteBugUpdater
Method | __init__ | Undocumented |
Method | updateRemoteBug | Undocumented |
Method | _getBugWatchesForRemoteBug | Return a list of bug watches for the current remote bug. |
Method | _convertRemoteStatus | Convert a remote status to a Launchpad one and return it. |
Method | _convertRemoteImportance | Convert a remote importance to a Launchpad one and return it. |
Method | _convertRemoteValue | Convert a remote bug value to a Launchpad value and return it. |
Inherited from WorkingBase:
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. |
The returned watches will all be members of self.bug_watch_ids
.
This method exists primarily to be overridden during testing.
If the remote value cannot be mapped to a Launchpad value, launchpad_unknown will be returned and a warning will be logged.
Parameters | conversion_method | A method returning the Launchpad value corresponding to the given remote value. |
remote_unknown | The remote value which indicates an unknown value. | |
launchpad_unknown | The Launchpad value which indicates an unknown value. | |
remote_value | The remote value to be converted. |