From df7dbdc636d714d9a89584f8193f876b25b3853c Mon Sep 17 00:00:00 2001 From: chove Date: Fri, 2 Dec 2005 15:29:46 +0100 Subject: [PATCH] c'est cool de modifier les trucs plusieurs endroits... si ca amuse un apprenti de factoriser la cration de compte ? ce n'est pas trs compliqu et ca fait se plonger dans ldap_crans darcs-hash:20051202142946-4ec08-666d591da79ad30cb9ee1f4208b16bdb8c55b790.gz --- gestion/ldap_crans.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index eff20c30..be12af74 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1902,6 +1902,9 @@ class club(base_proprietaire): home = '/home/' + login.replace('-','/',1) if os.path.exists(home): raise ValueError(u'Création du compte impossible : home existant',1) + + if os.path.exists("/var/mail/"+login): + raise ValueError(u'Création du compte impossible : /var/mail/%s existant'%login,1) # Lock du mail self.lock('mail',login)