Commit ce63a24d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! fixup! py2/py3: dict_key does not have sort().

parent 2c6a3445
from Products.ERP5Type.Document import newTempBase from Products.ERP5Type.Document import newTempBase
from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5.Document.BusinessTemplate import TemplateConditionError from Products.ERP5.Document.BusinessTemplate import TemplateConditionError
import six
# get selected business templates # get selected business templates
p = context.getPortalObject() p = context.getPortalObject()
......
from Products.ERP5Type.Document import newTempBase from Products.ERP5Type.Document import newTempBase
from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5Type.Utils import ensure_list
import six import six
Base_translateString = context.Base_translateString Base_translateString = context.Base_translateString
......
...@@ -47,7 +47,7 @@ save_and_remove_title = Base_translateString('Backup And Remove') ...@@ -47,7 +47,7 @@ save_and_remove_title = Base_translateString('Backup And Remove')
for bt in bt_id_list: for bt in bt_id_list:
bt_title, modified_object_list = bt_object_dict[bt] bt_title, modified_object_list = bt_object_dict[bt]
for i, (object_id, value) in enumerate(sorted(six.iteritems(modified_object_list))): for i, (object_id, value) in enumerate(sorted(six.iteritems(modified_object_list))):
object_state, object_class = modified_object_list[object_id] object_state, object_class = value
object_id = bt+'|'+object_id object_id = bt+'|'+object_id
line = newTempBase(context, 'tmp_install_%s' % i) line = newTempBase(context, 'tmp_install_%s' % i)
......
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