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): ...@@ -759,21 +759,22 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
if keyword_match_rate>0.5: if keyword_match_rate>0.5:
return keyword_match_rate return keyword_match_rate
else: else:
def split(string): def split(string):
result = [] result = []
temporary = []
for char in string:
if char.isupper():
if temporary:
result.append(''.join(temporary))
temporary = [] temporary = []
temporary.append(char) for char in string:
result.append(''.join(temporary)) if char.isupper():
return result if temporary:
if ''.join(field_id.split('_')[1:]).startswith( result.append(''.join(temporary))
split(field.meta_type)[0].lower()): temporary = []
# At least it seems a generic template field of the meta_type. temporary.append(char)
return 0.1 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 make_dict_list_append_function(dic, order_list):
def append(key, item): 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