Commit 6d3afebb authored by Yusei Tahara's avatar Yusei Tahara

Fix indent.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26906 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f43c180
......@@ -759,21 +759,22 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
if keyword_match_rate>0.5:
return keyword_match_rate
else:
def split(string):
result = []
temporary = []
for char in string:
if char.isupper():
if temporary:
result.append(''.join(temporary))
def split(string):
result = []
temporary = []
temporary.append(char)
result.append(''.join(temporary))
return result
if ''.join(field_id.split('_')[1:]).startswith(
split(field.meta_type)[0].lower()):
# At least it seems a generic template field of the meta_type.
return 0.1
for char in string:
if char.isupper():
if temporary:
result.append(''.join(temporary))
temporary = []
temporary.append(char)
result.append(''.join(temporary))
return result
if ''.join(field_id.split('_')[1:]).startswith(
split(field.meta_type)[0].lower()):
# At least it seems a generic template field of the meta_type.
return 0.1
def make_dict_list_append_function(dic, order_list):
def append(key, item):
......
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