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,
                 ]))
Exemple #2
0
 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 _register_subclass(cls):
     TranslationSharingJobDerived._register_subclass(cls)
     job_type = getattr(cls, 'class_job_type', None)
     if job_type is not None:
         cls._translation_packaging_job_types.append(job_type)
Exemple #4
0
 def _register_subclass(cls):
     TranslationSharingJobDerived._register_subclass(cls)
     job_type = getattr(cls, 'class_job_type', None)
     if job_type is not None:
         cls._translation_packaging_job_types.append(job_type)