def find(self): if self.potemplate is None: return list(TranslationSharingJobDerived.iterReady([ TranslationSharingJob.productseries_id == self.productseries.id, (TranslationSharingJob.sourcepackagename_id == self.sourcepackagename.id), TranslationSharingJob.distroseries_id == self.distroseries.id, TranslationSharingJob.job_type == self.job_type, ])) else: return list( TranslationSharingJobDerived.iterReady([ TranslationSharingJob.potemplate_id == self.potemplate.id, TranslationSharingJob.job_type == self.job_type, ]))
def find(self): if self.potemplate is None: return list( TranslationSharingJobDerived.iterReady([ TranslationSharingJob.productseries_id == self.productseries.id, (TranslationSharingJob.sourcepackagename_id == self.sourcepackagename.id), TranslationSharingJob.distroseries_id == self.distroseries.id, TranslationSharingJob.job_type == self.job_type, ])) else: return list( TranslationSharingJobDerived.iterReady([ TranslationSharingJob.potemplate_id == self.potemplate.id, TranslationSharingJob.job_type == self.job_type, ]))