예제 #1
0
 def __init__(self, name):
     """ Constructor.
     :arg  name, basename used to search for rpm
     """
     AbstractBug.__init__(self)
     self.check_options()
     self.name = name
예제 #2
0
 def __init__(self, name):
     """ Constructor.
     :arg  name, basename used to search for rpm
     """
     AbstractBug.__init__(self)
     self.check_options()
     self.name = name
예제 #3
0
 def __init__(self, url):
     """ Constructor.
     :arg url, complete url to bug
     """
     AbstractBug.__init__(self)
     self.check_options()
     self.bug_url = url
     if not url.startswith('http'):
         self.bug_url = os.path.normpath(self.bug_url)
예제 #4
0
    def __init__(self, bug, user=None, password=None):
        """ Constructor.
        :arg bug, the bug number on bugzilla
        :kwarg user, the username with which to log in in bugzilla.
        :kwarg password, the password associated with this account.
        """
        AbstractBug.__init__(self)
        self.check_options()
        self.bug_num = bug
        bz_url = os.path.join(Settings.current_bz_url, 'xmlrpc.cgi')
        self.bugzilla = Bugzilla(url=bz_url)

        self.log.info("Trying bugzilla cookies for authentication")
        self.user = user
        self.bug = self.bugzilla.getbug(self.bug_num)
        if Settings.login:
             self.login(Settings.user)
        if Settings.assign:
            self.assign_bug()
예제 #5
0
    def __init__(self, bug, user=None, password=None):
        """ Constructor.
        :arg bug, the bug number on bugzilla
        :kwarg user, the username with which to log in in bugzilla.
        :kwarg password, the password associated with this account.
        """
        AbstractBug.__init__(self)
        self.check_options()
        self.bug_num = bug
        bz_url = os.path.join(Settings.current_bz_url, 'xmlrpc.cgi')
        self.bugzilla = Bugzilla(url=bz_url)

        self.log.info("Trying bugzilla cookies for authentication")
        self.user = user
        self.bug = self.bugzilla.getbug(self.bug_num)
        if Settings.login:
            self.login(Settings.user)
        if Settings.assign:
            self.assign_bug()