summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2002-05-21 20:14:11 +0000
committerJens Vagelpohl <jens@netz.ooo>2002-05-21 20:14:11 +0000
commitc93914c0e45eda0077a2ee581fdcced97cae1460 (patch)
tree8dec17e83b46340142e4a2e1cd16c82e76473908
parent3c12a1a9d9ec87844a7d9d4bc22478aaf71f1fde (diff)
downloadLDAPRoleTwiddler-c93914c0e45eda0077a2ee581fdcced97cae1460.zip
LDAPRoleTwiddler-c93914c0e45eda0077a2ee581fdcced97cae1460.tar.gz
hm... just copy the reference instead of using deepcopy.
-rw-r--r--CHANGES.txt5
-rw-r--r--LDAPRoleTwiddler.py3
2 files changed, 3 insertions, 5 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 6fe5091..3200d00 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -10,9 +10,8 @@ CHANGES.txt for the LDAPRoleTwiddler
installation did not have an emergency user account installed
(Tracker item 135, Dirk Datzert is at it again).
- * The original user properties are now explicitly duplicated
- using copy.deepcopy and stuffed into the twiddled user
- object (Tracker issue 137, filed by Dirk Datzert).
+ * The original user properties are now explicitly copied into
+ the new user object (Tracker issue 137, filed by Dirk Datzert).
1.4
diff --git a/LDAPRoleTwiddler.py b/LDAPRoleTwiddler.py
index 962b2e6..f2ff767 100644
--- a/LDAPRoleTwiddler.py
+++ b/LDAPRoleTwiddler.py
@@ -219,8 +219,7 @@ class LDAPRoleTwiddler( SimpleItem ):
, {}
, []
)
- old_props = copy.deepcopy( untwiddled_user._properties )
- twiddled_user._properties = old_props
+ twiddled_user._properties = untwiddled_user._properties
return twiddled_user