diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-08-01 21:00:09 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-08-01 21:00:09 +0200 |
commit | 1c94f3e95da5b520ee631670a30f96e487f12ac8 (patch) | |
tree | 0e6533be81e69123ba2a33406fd3336b892eaaad /source4/scripting/python/samba/samba3.py | |
parent | fff006bd84fc3fd1d9fdd22e3c20110285b2c144 (diff) | |
download | samba-1c94f3e95da5b520ee631670a30f96e487f12ac8.tar.gz samba-1c94f3e95da5b520ee631670a30f96e487f12ac8.tar.xz samba-1c94f3e95da5b520ee631670a30f96e487f12ac8.zip |
Use new style python classes.
(This used to be commit 2a39aae0cef310a79427feb1b85f6794ea36849a)
Diffstat (limited to 'source4/scripting/python/samba/samba3.py')
-rw-r--r-- | source4/scripting/python/samba/samba3.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/samba3.py b/source4/scripting/python/samba/samba3.py index c1340b7760b..0e0c29dac82 100644 --- a/source4/scripting/python/samba/samba3.py +++ b/source4/scripting/python/samba/samba3.py @@ -308,7 +308,7 @@ class ShareInfoDatabase(TdbDatabase): return secdesc -class Shares: +class Shares(object): """Container for share objects.""" def __init__(self, lp, shareinfo): self.lp = lp @@ -371,7 +371,7 @@ def decode_acb(text): return ret -class SAMUser: +class SAMUser(object): """Samba 3 SAM User. :note: Unknown or unset fields are set to None. @@ -421,7 +421,8 @@ class SAMUser: return False return self.__dict__ == other.__dict__ -class SmbpasswdFile: + +class SmbpasswdFile(object): """Samba 3 smbpasswd file reader.""" def __init__(self, file): self.users = {} @@ -482,7 +483,7 @@ TDBSAM_FORMAT_STRING_V2 = "dddddddBBBBBBBBBBBBddBBBwwdBwwd" TDBSAM_USER_PREFIX = "USER_" -class LdapSam: +class LdapSam(object): """Samba 3 LDAP passdb backend reader.""" def __init__(self, url): self.ldap_url = ldap_url @@ -605,7 +606,7 @@ def shellsplit(text): return ret -class WinsDatabase: +class WinsDatabase(object): """Samba 3 WINS database reader.""" def __init__(self, file): self.entries = {} @@ -643,7 +644,8 @@ class WinsDatabase: def close(self): # for consistency pass -class Samba3: + +class Samba3(object): """Samba 3 configuration and state data reader.""" def __init__(self, libdir, smbconfpath): """Open the configuration and data for a Samba 3 installation. |