[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7251 - trunk/gnue-common/src/datasources/drivers/Base
From: |
reinhard |
Subject: |
[gnue] r7251 - trunk/gnue-common/src/datasources/drivers/Base |
Date: |
Tue, 22 Mar 2005 14:28:50 -0600 (CST) |
Author: reinhard
Date: 2005-03-22 14:28:49 -0600 (Tue, 22 Mar 2005)
New Revision: 7251
Modified:
trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
Log:
Make a copy of the parameter if a mutable object is used as default value.
Otherwise, changes to the object will be remembered for the next call! (see
http://www.python.org/doc/2.3.5/ref/function.html for details)
Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-22
19:16:02 UTC (rev 7250)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-22
20:28:49 UTC (rev 7251)
@@ -69,7 +69,7 @@
self.__detailLinkFlags = {}
# Dictionary with field:value pairs of initial data
- self._initialData = initialData
+ self._initialData = initialData.copy () # don't touch the parameter!
if self._initialData and len (self._initialData):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7251 - trunk/gnue-common/src/datasources/drivers/Base,
reinhard <=