[Erp5-report] r19313 - /erp5/trunk/products/ZLDAPConnection/ZLDAP.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 14 16:17:05 CET 2008


Author: nicolas
Date: Thu Feb 14 16:17:05 2008
New Revision: 19313

URL: http://svn.erp5.org?rev=19313&view=rev
Log:
Test if connection is still open

Modified:
    erp5/trunk/products/ZLDAPConnection/ZLDAP.py

Modified: erp5/trunk/products/ZLDAPConnection/ZLDAP.py
URL: http://svn.erp5.org/erp5/trunk/products/ZLDAPConnection/ZLDAP.py?rev=19313&r1=19312&r2=19313&view=diff
==============================================================================
--- erp5/trunk/products/ZLDAPConnection/ZLDAP.py (original)
+++ erp5/trunk/products/ZLDAPConnection/ZLDAP.py Thu Feb 14 16:17:05 2008
@@ -372,6 +372,8 @@
             self._v_conn = None
         if self._v_conn is None or not self.shouldBeOpen():
             return 0
+        elif not self.__ping():
+            return 0
         else:
             return 1
 




More information about the Erp5-report mailing list