Babel and Query Reports

Ok. Got it. Use regex instead of jinja. 

Sent from my phone

> On 20-Jul-2014, at 9:18, Rushabh Mehta <notifications@github.com> wrote:
> 
> In frappe/widgets/query_report.py:
> 
> > @@ -56,6 +54,27 @@ def get_script(report_name):
> >  		"html_format": html_format
> >  	}
> >  
> > +def get_html_format(print_path, report, module):
> > +	html_format = None
> > +	if os.path.exists(print_path):
> > +		with open(print_path, "r") as f:
> > +			html_format = f.read()
> > +
> > +	elif report.is_standard == "Yes" and report.report_type == "Script Report":
> > +		try:
> > +			# check for html format file path in report's python file
> > +			report_py = frappe.get_module(get_report_module_dotted_path(module, report.name))
> > +			if hasattr(report_py, "print_path"):
> regex
> …
> —
> Reply to this email directly or view it on GitHub.