def __init__(self, name, dbuser=None, test_args=None):
     LaunchpadScript.__init__(self, name, dbuser, test_args)
     # The logfile changes its name according to the code in
     # CodeImportDispatcher, so we pull it from the command line
     # options.
     set_up_oops_reporting(
         self.name, 'codeimportworker', logfile=self.options.log_file)
예제 #2
0
 def __init__(self, name, dbuser=None, test_args=None):
     LaunchpadScript.__init__(self, name, dbuser, test_args)
     # The logfile changes its name according to the code in
     # CodeImportDispatcher, so we pull it from the command line
     # options.
     set_up_oops_reporting(self.name,
                           'codeimportworker',
                           logfile=self.options.log_file)
예제 #3
0
    def __init__(self, *args, **kwargs):
        """Initialize dynamic 'usage' message and LaunchpadScript parent.

        Also initialize the list 'allowed_arguments'.
        """
        self.allowed_actions = ['supported']
        self.usage = '%%prog <%s>' % ' | '.join(self.allowed_actions)
        LaunchpadScript.__init__(self, *args, **kwargs)
예제 #4
0
 def __init__(self, name, dbuser=None, test_args=None):
     LaunchpadScript.__init__(self, name, dbuser, test_args)
     # Cache this on object creation so it can be used in tests.
     self.now_timestamp = datetime.utcnow()
     self.locations = set()
 def __init__(self, name, dbuser=None, test_args=None):
     LaunchpadScript.__init__(self, name, dbuser, test_args)
     # Cache this on object creation so it can be used in tests.
     self.now_timestamp = datetime.utcnow()
     self.locations = set()