Changeset 3307
- Timestamp:
- 01/30/08 21:48:01 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r3294 r3307 167 167 raise PyKotaStorageError, (_("Search base %s doesn't seem to exist. Probable misconfiguration. Please double check /etc/pykota/pykota.conf : %s") % (base, msg)) 168 168 except ldap.LDAPError, msg : 169 message = (_("Search for %s(%s) from %s(scope=%s) returned no answer.") % (key, fields, base, scope)) + " : %s" % str(msg)169 message = (_("Search for %s(%s) from %s(scope=%s) returned no answer.") % (key, fields, base, scope)) + " : %s" % msg 170 170 self.tool.printInfo("LDAP error : %s" % message, "error") 171 171 self.tool.printInfo("LDAP connection will be closed and reopened.", "warn") … … 193 193 self.database.add_s(dn, entry) 194 194 except ldap.ALREADY_EXISTS, msg : 195 raise PyKotaStorageError, "Entry %s already exists : %s" % (dn, str(msg))195 raise PyKotaStorageError, "Entry %s already exists : %s" % (dn, msg) 196 196 except ldap.LDAPError, msg : 197 message = (_("Problem adding LDAP entry (%s, %s)") % (dn, str(fields))) + " : %s" % str(msg)197 message = (_("Problem adding LDAP entry (%s, %s)") % (dn, str(fields))) + " : %s" % msg 198 198 self.tool.printInfo("LDAP error : %s" % message, "error") 199 199 self.tool.printInfo("LDAP connection will be closed and reopened.", "warn") … … 217 217 self.tool.printInfo("Entry %s was already missing before we deleted it. This **MAY** be normal." % dn, "info") 218 218 except ldap.LDAPError, msg : 219 message = (_("Problem deleting LDAP entry (%s)") % dn) + " : %s" % str(msg)219 message = (_("Problem deleting LDAP entry (%s)") % dn) + " : %s" % msg 220 220 self.tool.printInfo("LDAP error : %s" % message, "error") 221 221 self.tool.printInfo("LDAP connection will be closed and reopened.", "warn") … … 274 274 self.database.modify_s(dn, modentry) 275 275 except ldap.LDAPError, msg : 276 message = (_("Problem modifying LDAP entry (%s, %s)") % (dn, fields)) + " : %s" % str(msg)276 message = (_("Problem modifying LDAP entry (%s, %s)") % (dn, fields)) + " : %s" % msg 277 277 self.tool.printInfo("LDAP error : %s" % message, "error") 278 278 self.tool.printInfo("LDAP connection will be closed and reopened.", "warn")