Mise en forme.
darcs-hash:20060406031054-68412-9f7f19f8e8c05e3e550c312a612e89e0c7deda2c.gz
This commit is contained in:
parent
cd8bafd791
commit
3ed8efdd26
1 changed files with 40 additions and 34 deletions
|
@ -57,8 +57,10 @@ class del_user:
|
|||
|
||||
class home:
|
||||
debug = True
|
||||
|
||||
def __init__(self, args):
|
||||
self.args = args
|
||||
|
||||
def reconfigure(self):
|
||||
cprint(u'Création home', 'gras')
|
||||
for args in self.args:
|
||||
|
@ -71,11 +73,11 @@ class home:
|
|||
os.mkdir(home, 0755)
|
||||
os.chown(home, int(uid), config.gid)
|
||||
elif os.path.isdir(home):
|
||||
# Il y un répertoire existant
|
||||
# Il y un répertoire existant
|
||||
# Bon UID ?
|
||||
stat = os.stat(home)
|
||||
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')
|
||||
|
||||
### Quota
|
||||
|
@ -99,8 +101,10 @@ class home:
|
|||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
class mail_bienvenue:
|
||||
debug = True
|
||||
|
||||
def __init__(self, mails):
|
||||
self.mails = mails
|
||||
|
||||
|
@ -122,8 +126,10 @@ class mail_bienvenue :
|
|||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
class ML_ens:
|
||||
debug = True
|
||||
|
||||
def __init__(self, mails):
|
||||
self.mails = mails
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue