Ejemplo n.º 1
0
    def __init__(self, *args, **kw):
        F14_RepoData.__init__(self, *args, **kw)
        for field in ('save', 'proxyuser', 'proxypasswd', 'debuginfo',
                      'disable', 'source', 'gpgkey', 'ssl_verify', 'priority',
                      'nocache', 'user', 'passwd'):
            setattr(self, field, kw.get(field))

        if hasattr(self, 'proxy') and not self.proxy:
            # TODO: remove this code, since it only for back-compatible.
            # Some code behind only accept None but not empty string
            # for default proxy
            self.proxy = None