Babel and Query Reports

Thought about that but since the syntax of jinja and jresig templates is similar, it is likely to cause problems. 

Sent from my phone

> On 20-Jul-2014, at 0:20, 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"):
> add an {% include %} equivalent (pre-process includes on server side). this does not seem right.
> 
> —
> Reply to this email directly or view it on GitHub.