Commit 2cbdc3de authored by Yoshinori Okuji's avatar Yoshinori Okuji

Always copy the parameters to a new dictionary for safety.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8074 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38780701
...@@ -176,10 +176,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -176,10 +176,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
#LOG("Selection", 0, str((self.__dict__)) #LOG("Selection", 0, str((self.__dict__))
#LOG("Selection", 0, str(method)) #LOG("Selection", 0, str(method))
#LOG('Selection', 0, "self.invert_mode = %s" % repr(self.invert_mode)) #LOG('Selection', 0, "self.invert_mode = %s" % repr(self.invert_mode))
if self.invert_mode is 0:
kw = self.params
else:
kw = self.params.copy() kw = self.params.copy()
if self.invert_mode is not 0:
kw['uid'] = self.uids kw['uid'] = self.uids
if method is None or type(method) is type('a'): if method is None or type(method) is type('a'):
method_path = method or self.method_path method_path = method or self.method_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment