Mise en forme.

darcs-hash:20060406031054-68412-9f7f19f8e8c05e3e550c312a612e89e0c7deda2c.gz
This commit is contained in:
glondu 2006-04-06 05:10:54 +02:00
parent cd8bafd791
commit 3ed8efdd26

View file

@ -57,8 +57,10 @@ class del_user:
class home: class home:
debug = True debug = True
def __init__(self, args): def __init__(self, args):
self.args = args self.args = args
def reconfigure(self): def reconfigure(self):
cprint(u'Création home', 'gras') cprint(u'Création home', 'gras')
for args in self.args: for args in self.args:
@ -71,11 +73,11 @@ class home:
os.mkdir(home, 0755) os.mkdir(home, 0755)
os.chown(home, int(uid), config.gid) os.chown(home, int(uid), config.gid)
elif os.path.isdir(home): elif os.path.isdir(home):
# Il y un répertoire existant # Il y un répertoire existant
# Bon UID ? # Bon UID ?
stat = os.stat(home) stat = os.stat(home)
if stat[4] != int(uid) or stat[5] != config.gid: if stat[4] != int(uid) or stat[5] != config.gid:
# Le home n'est pas à la bonne personne # Le home n'est pas pas à la bonne personne
raise OSError('home existant') raise OSError('home existant')
### Quota ### Quota
@ -99,8 +101,10 @@ class home:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
class mail_bienvenue: class mail_bienvenue:
debug = True debug = True
def __init__(self, mails): def __init__(self, mails):
self.mails = mails self.mails = mails
@ -122,8 +126,10 @@ class mail_bienvenue :
import traceback import traceback
traceback.print_exc() traceback.print_exc()
class ML_ens: class ML_ens:
debug = True debug = True
def __init__(self, mails): def __init__(self, mails):
self.mails = mails self.mails = mails