Commit 08e53c6d authored by Vincent Pelletier's avatar Vincent Pelletier

Use isinstance. Not all occurencies in file are corrected.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9394 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8d915a0
......@@ -179,7 +179,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
kw = self.params.copy()
if self.invert_mode is not 0:
kw['uid'] = self.uids
if method is None or type(method) is type('a'):
if method is None or isinstance(method, str):
method_path = method or self.method_path
method = context.unrestrictedTraverse(method_path)
if type(method) is type('a'):
......
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