From 966da7c9928ecd14fa0db787a848b78d5e4bcd31 Mon Sep 17 00:00:00 2001 From: Romain Beuque Date: Mon, 1 Sep 2014 00:27:25 +0200 Subject: [PATCH] correction creation folder annee qui n'existe pas --- Brie/brie/controllers/edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Brie/brie/controllers/edit.py b/Brie/brie/controllers/edit.py index 7f2d663..4a9a2f4 100644 --- a/Brie/brie/controllers/edit.py +++ b/Brie/brie/controllers/edit.py @@ -93,7 +93,7 @@ class MemberAddController(AuthenticatedRestController): #endif def year_directory_exists(year): - search = self.user.ldap_bind.search_s(ldap_config.username_base_dn + residence_dn,ldap.SCOPE_SUBTREE,"(ou="+str(year)+")") + search = self.user.ldap_bind.search(ldap_config.username_base_dn + residence_dn,"(ou="+str(year)+")") if len(search) == 0: print "[LOG]Year "+str(year)+" directory does not exist. Creating." directory_attrs = {