"""
for div in range(0, len(divide)):
if divide[div] != '':
@@ -318,7 +318,7 @@ class survey_browse_response(report_rml):
| """ + divide[div] + """ | """
else:
- rml+="""
+ rml += """|
|
""" + divide[div] + """ | """
@@ -347,11 +347,11 @@ class survey_browse_response(report_rml):
rml += """
| No Response |
"""
- elif que.type in ['multiple_textboxes_diff_type','multiple_textboxes','date','date_and_time','numerical_textboxes','multiple_textboxes_diff_type']:
+ elif que.type in ['multiple_textboxes_diff_type', 'multiple_textboxes', 'date', 'date_and_time', 'numerical_textboxes', 'multiple_textboxes_diff_type']:
if len(answer) and answer[0].state == "done":
cols_widhts = []
- cols_widhts.append(float(_tbl_widths.replace('cm',''))/2)
- cols_widhts.append(float(_tbl_widths.replace('cm',''))/2)
+ cols_widhts.append(float(_tbl_widths.replace('cm', '')) / 2)
+ cols_widhts.append(float(_tbl_widths.replace('cm', '')) / 2)
colWidths = "cm,".join(map(tools.ustr, cols_widhts))
colWidths = tools.ustr(colWidths) + 'cm'
answer_list = {}
@@ -390,21 +390,21 @@ class survey_browse_response(report_rml):
rml += """
| No Response |
"""
- elif que.type in ['matrix_of_choices_only_one_ans','matrix_of_choices_only_multi_ans', 'rating_scale', 'matrix_of_drop_down_menus']:
+ elif que.type in ['matrix_of_choices_only_one_ans', 'matrix_of_choices_only_multi_ans', 'rating_scale', 'matrix_of_drop_down_menus']:
if len(answer) and answer[0].state == "done":
if que.type in ['matrix_of_choices_only_one_ans', 'rating_scale'] and que.comment_column:
pass
cols_widhts = []
if len(que.column_heading_ids):
- cols_widhts.append(float(_tbl_widths.replace('cm','')) / float(2.0))
+ cols_widhts.append(float(_tbl_widths.replace('cm', '')) / float(2.0))
for col in que.column_heading_ids:
- cols_widhts.append(float((float(_tbl_widths.replace('cm','')) / float(2.0)) / len(que.column_heading_ids)))
+ cols_widhts.append(float((float(_tbl_widths.replace('cm', '')) / float(2.0)) / len(que.column_heading_ids)))
else:
- cols_widhts.append(float(_tbl_widths.replace('cm','')))
+ cols_widhts.append(float(_tbl_widths.replace('cm', '')))
tmp = 0.0
- sum = 0.0
+ sum = 0.0
i = 0
- if que.type in ['matrix_of_choices_only_one_ans','rating_scale'] and que.comment_column:
+ if que.type in ['matrix_of_choices_only_one_ans', 'rating_scale'] and que.comment_column:
for col in cols_widhts:
if i == 0:
cols_widhts[i] = cols_widhts[i] / 2.0
@@ -414,7 +414,7 @@ class survey_browse_response(report_rml):
cols_widhts.append(round(tmp, 2))
colWidths = "cm,".join(map(tools.ustr, cols_widhts))
colWidths = colWidths + 'cm'
- matrix_ans = [(0, ''),]
+ matrix_ans = [(0, ''), ]
for col in que.column_heading_ids:
if col.title not in matrix_ans:
matrix_ans.append((col.id, col.title))
@@ -423,17 +423,17 @@ class survey_browse_response(report_rml):
matrix_ans.append(que.column_name)
rml += """"""
for mat_col in range(0, len(matrix_ans)):
- rml+="""| """ + to_xml(tools.ustr(matrix_ans[mat_col][1])) + """ | """
- rml +=""" """
- rml+=""""""
- i=0
+ rml += """""" + to_xml(tools.ustr(matrix_ans[mat_col][1])) + """ | """
+ rml += """ |
"""
+ rml += """