l.c.m.c.CodeImportEventSet : class documentation

Part of lp.code.model.codeimportevent View In Hierarchy

See ICodeImportEventSet.
Method getAll See ICodeImportEventSet.
Method getEventsForCodeImport See ICodeImportEventSet.
Method newCreate See ICodeImportEventSet.
Method beginModify See ICodeImportEventSet.
Method newModify See ICodeImportEventSet.
Method newRequest See ICodeImportEventSet.
Method newOnline See ICodeImportEventSet.
Method newOffline See ICodeImportEventSet.
Method newQuiesce See ICodeImportEventSet.
Method newStart See ICodeImportEventSet.
Method newFinish See ICodeImportEventSet.
Method newKill See ICodeImportEventSet.
Method newReclaim See ICodeImportEventSet.
Method _recordMessage Record a message if there is a message set.
Method _recordSnapshot Record a snapshot of the code import in the event data.
Method _recordCodeImport Record the code import id in the event data.
Method _recordItems Record the specified event data into the database.
Method _iterItemsForSnapshot Yield key-value tuples to save a snapshot of the code import.
Method _getCodeImportItem Return the key-value tuple for the code import id.
Method _getNullableValue Return the string value for a nullable value.
Method _iterSourceDetails Yield key-value tuples describing the source of the import.
Method _findModifications Find modifications made to the code import.
def getAll(self):
See ICodeImportEventSet.
def getEventsForCodeImport(self, code_import):
See ICodeImportEventSet.
def newCreate(self, code_import, person):
See ICodeImportEventSet.
def beginModify(self, code_import):
See ICodeImportEventSet.
def newModify(self, code_import, person, token):
See ICodeImportEventSet.
def newRequest(self, code_import, person):
See ICodeImportEventSet.
def _recordMessage(self, event, message):
Record a message if there is a message set.
def newOnline(self, machine, user=None, message=None, _date_created=None):
See ICodeImportEventSet.
def newOffline(self, machine, reason, user=None, message=None):
See ICodeImportEventSet.
def newQuiesce(self, machine, user, message=None):
See ICodeImportEventSet.
def newStart(self, code_import, machine):
See ICodeImportEventSet.
def newFinish(self, code_import, machine):
See ICodeImportEventSet.
def newKill(self, code_import, machine):
See ICodeImportEventSet.
def newReclaim(self, code_import, machine, job_id):
See ICodeImportEventSet.
def _recordSnapshot(self, event, code_import):
Record a snapshot of the code import in the event data.
def _recordCodeImport(self, event, code_import):
Record the code import id in the event data.
def _recordItems(self, event, items):
Record the specified event data into the database.
def _iterItemsForSnapshot(self, code_import):
Yield key-value tuples to save a snapshot of the code import.
def _getCodeImportItem(self, code_import):
Return the key-value tuple for the code import id.
def _getNullableValue(self, value, use_id=False):
Return the string value for a nullable value.
ParametersvalueThe value to represent as a string.
use_idReturn the id of the object instead of the object, such as for a foreign key.
def _iterSourceDetails(self, code_import):
Yield key-value tuples describing the source of the import.
def _findModifications(self, code_import, token):
Find modifications made to the code import.

If no change was found, return None. Otherwise return a list of items that describe the old and new state of the modified code import.

Parameterscode_importCodeImport object that was presumably modified.
tokenToken returned by a call to _makeModificationToken before the code import was modified.
ReturnsSet of items that can be passed to _recordItems, or None.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.