Commit 09e16aa4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

No need to escape a md5 hex digest.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37874234
...@@ -38,7 +38,6 @@ from DateTime import DateTime ...@@ -38,7 +38,6 @@ from DateTime import DateTime
from Products.ERP5Type.Utils import getPath from Products.ERP5Type.Utils import getPath
from Products.ERP5Type.Document import newTempBase from Products.ERP5Type.Document import newTempBase
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from xml.sax.saxutils import escape
from copy import copy from copy import copy
from Acquisition import aq_base, aq_inner, aq_parent, aq_self from Acquisition import aq_base, aq_inner, aq_parent, aq_self
...@@ -680,7 +679,7 @@ class ListBoxWidget(Widget.Widget): ...@@ -680,7 +679,7 @@ class ListBoxWidget(Widget.Widget):
# selection is the same # selection is the same
sorted_object_uid_list = copy(object_uid_list) sorted_object_uid_list = copy(object_uid_list)
sorted_object_uid_list.sort() sorted_object_uid_list.sort()
md5_string = escape(md5.new(str(sorted_object_uid_list)).hexdigest()) md5_string = md5.new(str(sorted_object_uid_list)).hexdigest()
#md5_string = md5.new(str(object_uid_list)).digest() #md5_string = md5.new(str(object_uid_list)).digest()
...@@ -712,8 +711,10 @@ class ListBoxWidget(Widget.Widget): ...@@ -712,8 +711,10 @@ class ListBoxWidget(Widget.Widget):
if list_method is not None: if list_method is not None:
try: try:
method_path = getPath(here) + '/' + list_method.method_name method_path = getPath(here) + '/' + list_method.method_name
LOG('ListBox', 0, 'method_path = %s, getPath = %s, list_method.method_name = %s' % (repr(method_path), repr(getPath(here)), repr(list_method.method_name)))
except: except:
method_path = getPath(here) + '/' + list_method.__name__ method_path = getPath(here) + '/' + list_method.__name__
LOG('ListBox', 0, 'method_path = %s, getPath = %s, list_method.__name__ = %s' % (repr(method_path), repr(getPath(here)), repr(list_method.__name__)))
# Sometimes the seltion name is a list ??? Why ???? # Sometimes the seltion name is a list ??? Why ????
if type(current_selection_name) in (type(()),type([])): if type(current_selection_name) in (type(()),type([])):
current_selection_name = current_selection_name[0] current_selection_name = current_selection_name[0]
......
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