diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 1e25ef88..d5c03055 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -828,11 +828,13 @@ class base_classes_crans(crans_ldap) : # Sauvegarde t = str(self.__class__).split('.')[-1] fd = open('%s/%s/%s_%s' % (config.cimetiere, t, time.strftime('%Y-%m-%d-%H:%M'), self.nom()),'wb') - self.conn = None # Fermeture de la connexion à la base sinon cPickle ne marchera pas + self.conn = None # Fermeture des connexions à la base sinon cPickle ne marchera pas + self.rw_conn = None cPickle.dump(self,fd,2) fd.close() index = "%s, %s : %s %s # %s\n" % (time.strftime(date_format), script_utilisateur, t, self.Nom() , comment) + self.connect() # Reconnexion à la base # Destruction data = self.conn.search_s(dn,2)