From 9beb467d98cb16e09fcda5ebbeb27056dfff3a2d Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 1 Nov 2011 08:58:05 -0400 Subject: Fix attempted write to attribute of read-only object. Add new class "cachedproperty" for creating property-like attributes that cache the return value of a method call. Also fix few issues in the unit tests to enable them to succeed. ticket 1959 --- ipaserver/install/ldapupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/install') diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 91d3d83c..8fbfeaf5 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -700,7 +700,7 @@ class LDAPUpdate: self.conn.deleteEntry(dn) self.modified = True except errors.NotFound, e: - root_logger.info("%s did not exist:%s", (dn, e)) + root_logger.info("%s did not exist:%s", dn, e) self.modified = True except errors.DatabaseError, e: root_logger.error("Delete failed: %s", e) @@ -717,7 +717,7 @@ class LDAPUpdate: self.conn.deleteEntry(dn) self.modified = True except errors.NotFound, e: - root_logger.info("%s did not exist:%s", (dn, e)) + root_logger.info("%s did not exist:%s", dn, e) self.modified = True except errors.DatabaseError, e: root_logger.error("Delete failed: %s", e) -- cgit