def _render_report_form(start_str, end_str, start_letter, end_letter, report_type, total_count_error=False, date_fmt_error=False):
 context = {'total_count_error': total_count_error, 'date_fmt_error': date_fmt_error, 'start_date': start_str, 'end_date': end_str, 'start_letter': start_letter, 'end_letter': end_letter, 'requested_report': report_type}
 return render_to_response('shoppingcart/download_report.html', context)

def _render_report_form ( start_str , end_str , start_letter , end_letter , report_type , total_count_error = False , date_fmt_error = False ) : context = { 'total_count_error' : total_count_error , 'date_fmt_error' : date_fmt_error , 'start_date' : start_str , 'end_date' : end_str , 'start_letter' : start_letter , 'end_letter' : end_letter , 'requested_report' : report_type } return render_to_response ( 'shoppingcart/download_report.html' , context )
helper function that renders the purchase form .