Exemplo n.º 1
0
 def execute(self, **params):     
     # get basic data (avoid creating stuff in DB)
     try:
         self.get_cmdline(**params)
         args = splitstring(self.cmdline)
     except Exception, e:
         log.error('Error in %s: %s %s' % (self.__class__.__name__, type(e), str(e)))
         self.deferred.errback(e)
Exemplo n.º 2
0
 def execute(self, **params):     
     # get basic data (avoid creating stuff in DB)
     try:
         self.get_cmdline(**params)
         args = splitstring(self.cmdline)
     except Exception, e:
         log.error('Error in %s: %s %s' % (self.__class__.__name__, type(e), str(e)))
         raise
Exemplo n.º 3
0
 def execute(self, output_variant_name, output_type, **params):     
     # get basic data (avoid creating stuff in DB)
     try:
         self.get_cmdline(output_variant_name, output_type, **params)
         output_variant = Variant.objects.get(name = output_variant_name)
         self.out_comp = self.item.create_variant(output_variant, self.workspace, self.out_type)
         self.out_comp.source = self.source
         args = splitstring(self.cmdline)
     except Exception, e:
         log.error('Error in %s: %s %s' % (self.__class__.__name__, type(e), str(e)))
         self.deferred.errback(e)
Exemplo n.º 4
0
 def execute(self, output_variant_name, output_type, **params):
     # get basic data (avoid creating stuff in DB)
     try:
         self.get_cmdline(output_variant_name, output_type, **params)
         output_variant = Variant.objects.get(name=output_variant_name)
         self.out_comp = self.item.create_variant(output_variant,
                                                  self.workspace,
                                                  self.out_type)
         self.out_comp.source = self.source
         args = splitstring(self.cmdline)
     except Exception, e:
         log.error('Error in %s: %s %s' %
                   (self.__class__.__name__, type(e), str(e)))
         self.deferred.errback(e)