Commit a3418bb0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

erp5_full_text_mroonga_catalog: Make code compatible with both python2 and python3.

parent c1348ff2
from Products.ERP5Type.Utils import UpperCase from Products.ERP5Type.Utils import UpperCase
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from zExceptions import Unauthorized from zExceptions import Unauthorized
import six
method = context.z_catalog_fulltext_list method = context.z_catalog_fulltext_list
property_list = method.arguments_src.split() property_list = method.arguments_src.split()
...@@ -24,7 +25,7 @@ for group_object in object_list: ...@@ -24,7 +25,7 @@ for group_object in object_list:
except Exception: except Exception:
group_object.raised() group_object.raised()
else: else:
for property, value in tmp_dict.iteritems(): for property, value in six.iteritems(tmp_dict):
parameter_dict[property].append(value) parameter_dict[property].append(value)
group_object.result = None group_object.result = None
......
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