l.s.d.s.SQLBase(storm.sqlobject.SQLObjectBase) : class documentation

Part of lp.services.database.sqlbase View In Hierarchy

Known subclasses: lp.answers.model.answercontact.AnswerContact, lp.answers.model.faq.FAQ, lp.answers.model.question.Question, lp.answers.model.questionmessage.QuestionMessage, lp.answers.model.questionreopening.QuestionReopening, lp.answers.model.questionsubscription.QuestionSubscription, lp.blueprints.model.specification.Specification, lp.blueprints.model.specificationbranch.SpecificationBranch, lp.blueprints.model.specificationdependency.SpecificationDependency, lp.blueprints.model.specificationmessage.SpecificationMessage, lp.blueprints.model.specificationsubscription.SpecificationSubscription, lp.blueprints.model.sprint.Sprint, lp.blueprints.model.sprintspecification.SprintSpecification, lp.bugs.model.bug.Bug, lp.bugs.model.bug.BugAffectsPerson, lp.bugs.model.bug.BugTag, lp.bugs.model.bugactivity.BugActivity, lp.bugs.model.bugattachment.BugAttachment, lp.bugs.model.bugbranch.BugBranch, lp.bugs.model.bugmessage.BugMessage, lp.bugs.model.bugnomination.BugNomination, lp.bugs.model.bugnotification.BugNotification, lp.bugs.model.bugnotification.BugNotificationRecipient, lp.bugs.model.bugtask.BugTask, lp.bugs.model.bugtracker.BugTracker, lp.bugs.model.bugtracker.BugTrackerAlias, lp.bugs.model.bugtrackerperson.BugTrackerPerson, lp.bugs.model.bugwatch.BugWatch, lp.bugs.model.cve.Cve, lp.bugs.model.cvereference.CveReference, lp.buildmaster.model.builder.Builder, lp.buildmaster.model.buildqueue.BuildQueue, lp.buildmaster.model.processor.Processor, lp.code.model.branch.Branch, lp.code.model.branchjob.BranchJob, lp.code.model.branchmergeproposal.BranchMergeProposal, lp.code.model.branchsubscription.BranchSubscription, lp.code.model.codeimport.CodeImport, lp.code.model.codeimportevent._CodeImportEventData, lp.code.model.codeimportevent.CodeImportEvent, lp.code.model.codeimportjob.CodeImportJob, lp.code.model.codeimportmachine.CodeImportMachine, lp.code.model.codeimportresult.CodeImportResult, lp.code.model.codereviewcomment.CodeReviewComment, lp.code.model.codereviewvote.CodeReviewVoteReference, lp.code.model.diff.Diff, lp.code.model.revision.Revision, lp.code.model.revision.RevisionAuthor, lp.code.model.revision.RevisionParent, lp.code.model.revision.RevisionProperty, lp.hardwaredb.model.hwdb.HWDevice, lp.hardwaredb.model.hwdb.HWDeviceClass, lp.hardwaredb.model.hwdb.HWDeviceDriverLink, lp.hardwaredb.model.hwdb.HWDeviceNameVariant, lp.hardwaredb.model.hwdb.HWDriver, lp.hardwaredb.model.hwdb.HWDriverName, lp.hardwaredb.model.hwdb.HWDriverPackageName, lp.hardwaredb.model.hwdb.HWSubmission, lp.hardwaredb.model.hwdb.HWSubmissionBug, lp.hardwaredb.model.hwdb.HWSubmissionDevice, lp.hardwaredb.model.hwdb.HWSystemFingerprint, lp.hardwaredb.model.hwdb.HWVendorID, lp.hardwaredb.model.hwdb.HWVendorName, lp.registry.model.announcement.Announcement, lp.registry.model.codeofconduct.SignedCodeOfConduct, lp.registry.model.commercialsubscription.CommercialSubscription, lp.registry.model.distribution.Distribution, lp.registry.model.distributionmirror.DistributionMirror, lp.registry.model.distributionmirror.MirrorCDImageDistroSeries, lp.registry.model.distributionmirror.MirrorDistroArchSeries, lp.registry.model.distributionmirror.MirrorDistroSeriesSource, lp.registry.model.distributionmirror.MirrorProbeRecord, lp.registry.model.distroseries.DistroSeries, lp.registry.model.featuredproject.FeaturedProject, lp.registry.model.gpgkey.GPGKey, lp.registry.model.karma.Karma, lp.registry.model.karma.KarmaAction, lp.registry.model.karma.KarmaCache, lp.registry.model.karma.KarmaCategory, lp.registry.model.karma.KarmaTotalCache, lp.registry.model.mailinglist.MailingList, lp.registry.model.mailinglist.MailingListSubscription, lp.registry.model.mailinglist.MessageApproval, lp.registry.model.milestone.Milestone, lp.registry.model.packaging.Packaging, lp.registry.model.person.IrcID, lp.registry.model.person.JabberID, lp.registry.model.person.Person, lp.registry.model.person.PersonLanguage, lp.registry.model.person.SSHKey, lp.registry.model.person.ValidPersonCache, lp.registry.model.person.WikiName, lp.registry.model.personlocation.PersonLocation, lp.registry.model.personnotification.PersonNotification, lp.registry.model.pillar.PillarName, lp.registry.model.poll.Poll, lp.registry.model.poll.PollOption, lp.registry.model.poll.Vote, lp.registry.model.poll.VoteCast, lp.registry.model.product.Product, lp.registry.model.productlicense.ProductLicense, lp.registry.model.productrelease.ProductRelease, lp.registry.model.productrelease.ProductReleaseFile, lp.registry.model.productseries.ProductSeries, lp.registry.model.projectgroup.ProjectGroup, lp.registry.model.sourcepackagename.SourcePackageName, lp.registry.model.teammembership.TeamMembership, lp.registry.model.teammembership.TeamParticipation, lp.services.identity.model.account.Account, lp.services.identity.model.emailaddress.EmailAddress, lp.services.job.model.job.Job, lp.services.librarian.model.LibraryFileAlias, lp.services.librarian.model.LibraryFileContent, lp.services.librarian.model.LibraryFileDownloadCount, lp.services.messages.model.message.Message, lp.services.messages.model.message.MessageChunk, lp.services.scripts.model.scriptactivity.ScriptActivity, lp.services.statistics.model.statistics.LaunchpadStatistic, lp.services.temporaryblobstorage.model.TemporaryBlobStorage, lp.services.verification.model.logintoken.LoginToken, lp.services.worlddata.model.country.Continent, lp.services.worlddata.model.country.Country, lp.services.worlddata.model.language.Language, lp.services.worlddata.model.spokenin.SpokenIn, lp.soyuz.model.archive.Archive, lp.soyuz.model.archivedependency.ArchiveDependency, lp.soyuz.model.archivepermission.ArchivePermission, lp.soyuz.model.binaryandsourcepackagename.BinaryAndSourcePackageName, lp.soyuz.model.binarypackagebuild.BinaryPackageBuild, lp.soyuz.model.binarypackagename.BinaryPackageName, lp.soyuz.model.binarypackagerelease.BinaryPackageRelease, lp.soyuz.model.component.Component, lp.soyuz.model.component.ComponentSelection, lp.soyuz.model.distributionsourcepackagecache.DistributionSourcePackageCache, lp.soyuz.model.distroarchseries.DistroArchSeries, lp.soyuz.model.distroarchseries.PocketChroot, lp.soyuz.model.distroseriespackagecache.DistroSeriesPackageCache, lp.soyuz.model.files.BinaryPackageFile, lp.soyuz.model.files.SourcePackageReleaseFile, lp.soyuz.model.packagediff.PackageDiff, lp.soyuz.model.publishing.BinaryPackagePublishingHistory, lp.soyuz.model.publishing.SourcePackagePublishingHistory, lp.soyuz.model.queue.PackageUpload, lp.soyuz.model.queue.PackageUploadBuild, lp.soyuz.model.queue.PackageUploadCustom, lp.soyuz.model.queue.PackageUploadSource, lp.soyuz.model.section.Section, lp.soyuz.model.section.SectionSelection, lp.soyuz.model.sourcepackagerelease.SourcePackageRelease, lp.translations.model.customlanguagecode.CustomLanguageCode, lp.translations.model.distroserieslanguage.DistroSeriesLanguage, lp.translations.model.languagepack.LanguagePack, lp.translations.model.poexportrequest.POExportRequest, lp.translations.model.pofile.POFile, lp.translations.model.pofiletranslator.POFileTranslator, lp.translations.model.pomsgid.POMsgID, lp.translations.model.potemplate.POTemplate, lp.translations.model.potmsgset.POTMsgSet, lp.translations.model.potranslation.POTranslation, lp.translations.model.translationgroup.TranslationGroup, lp.translations.model.translationimportqueue.TranslationImportQueueEntry, lp.translations.model.translationmessage.TranslationMessage, lp.translations.model.translationrelicensingagreement.TranslationRelicensingAgreement, lp.translations.model.translationtemplateitem.TranslationTemplateItem, lp.translations.model.translator.Translator

Base class emulating SQLObject for legacy database classes.
Method __init__ Extended version of the SQLObjectBase constructor.
Method __repr__ Undocumented
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented
def __init__(self, *args, **kwargs):
Extended version of the SQLObjectBase constructor.

We force use of the master Store.

We refetch any parameters from different stores from the correct master Store.

@classmethod
def _get_store(cls):
Undocumented
def __repr__(self):
Undocumented
def destroySelf(self):
Undocumented
def __eq__(self, other):
Equality operator.

Objects compare equal if:
  • They are the same instance, or
  • They have the same class and id, and the id is not None.

These rules allows objects retrieved from different stores to compare equal. The 'is' comparison is to support newly created objects that don't yet have an id (and by definition only exist in the Master store).

def __ne__(self, other):
Inverse of __eq__.
def __storm_invalidated__(self):
Flush cached properties.
API Documentation for Launchpad, generated by pydoctor at 2018-06-23 00:00:09.