mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: fix old-style-class
Reviewed-By: Tomas Krizek <tkrizek@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
568f9da331
commit
9bc57a01e1
@ -48,7 +48,7 @@ def openLocked(filename, perms):
|
||||
#TODO: put section delimiters as separating element of the list
|
||||
# so that we can process multiple sections in one go
|
||||
#TODO: add a comment all but provided options as a section option
|
||||
class IPAChangeConf:
|
||||
class IPAChangeConf(object):
|
||||
|
||||
def __init__(self, name):
|
||||
self.progname = name
|
||||
|
@ -39,7 +39,8 @@ ACTIONS = ["allow", "deny"]
|
||||
PERMISSIONS = ["read", "write", "add", "delete", "search", "compare",
|
||||
"selfwrite", "proxy", "all"]
|
||||
|
||||
class ACI:
|
||||
|
||||
class ACI(object):
|
||||
"""
|
||||
Holds the basic data for an ACI entry, as stored in the cn=accounts
|
||||
entry in LDAP. Has methods to parse an ACI string and export to an
|
||||
|
@ -126,7 +126,8 @@ def verify_args(parser, args, needed_args = None):
|
||||
elif len_have < len_need:
|
||||
parser.error("no %s specified" % needed_list[len_have])
|
||||
|
||||
class IPAConfig:
|
||||
|
||||
class IPAConfig(object):
|
||||
def __init__(self):
|
||||
self.default_realm = None
|
||||
self.default_server = []
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
|
||||
class Graph():
|
||||
class Graph(object):
|
||||
"""
|
||||
Simple oriented graph structure
|
||||
|
||||
|
@ -42,7 +42,8 @@ SYSRESTORE_PATH = paths.TMP
|
||||
SYSRESTORE_INDEXFILE = "sysrestore.index"
|
||||
SYSRESTORE_STATEFILE = "sysrestore.state"
|
||||
|
||||
class FileStore:
|
||||
|
||||
class FileStore(object):
|
||||
"""Class for handling backup and restore of files"""
|
||||
|
||||
def __init__(self, path = SYSRESTORE_PATH, index_file = SYSRESTORE_INDEXFILE):
|
||||
@ -290,7 +291,8 @@ class FileStore:
|
||||
|
||||
return True
|
||||
|
||||
class StateFile:
|
||||
|
||||
class StateFile(object):
|
||||
"""A metadata file for recording system state which can
|
||||
be backed up and later restored.
|
||||
StateFile gets reloaded every time to prevent loss of information
|
||||
|
@ -102,7 +102,7 @@ class UpgradeMissingVersionError(UpgradeVersionError):
|
||||
pass
|
||||
|
||||
|
||||
class ReplicaConfig:
|
||||
class ReplicaConfig(object):
|
||||
def __init__(self, top_dir=None):
|
||||
self.realm_name = ""
|
||||
self.domain_name = ""
|
||||
|
@ -134,7 +134,7 @@ def safe_output(attr, values):
|
||||
return values
|
||||
|
||||
|
||||
class LDAPUpdate:
|
||||
class LDAPUpdate(object):
|
||||
action_keywords = ["default", "add", "remove", "only", "onlyifexist", "deleteentry", "replace", "addifnew", "addifexist"]
|
||||
|
||||
def __init__(self, dm_password=None, sub_dict={},
|
||||
|
Loading…
Reference in New Issue
Block a user