# Path: jasper_erpnext_report/utils/utils.py
# def jasper_report_names_from_db(origin="both", filters_report=None, filters_param=None, filters_permrole=None):
# def jasper_print_formats(doc):
# def validate_print_permission(doc):
# def import_all_jasper_remote_reports(docs, force=True):
# def check_queryString_with_param(query, param):
# def check_queryString_param(query, param):
# def get_default_param_value(param, error=True):
# def call_hook_for_param(doc, method, *args):
# def call_hook_for_param_with_default(doc, hook_name, *args):
# def testHookScriptlet(JasperScriptlet, ids, data, cols, cur_doctype, cur_docname):
# 		def __init__(self, JasperScriplet, ids=None, data=None, cols=None, doctype=None):
# 		def test(self, args):
# def make_jasper_hooks_path():
# def get_hook_module(hook_name, report_name=None):
# def jasper_run_method(hook_name, *args, **kargs):
# def jasper_run_method_once_with_default(hook_name, docname, default):
# def check_jasper_perm(perms, ptypes=("read",), user=None):
# 		def check_perm(perms, user_roles, ptype):
# def check_frappe_permission(doctype, docname, ptypes=("read", )):
# def jasper_users_login(user):
# def pipInstall(package=None):
# def get_Frappe_Version(version=None):
# def getFrappeVersion():
# def add_to_time_str(date=None, hours=0, days=0, weeks=0):
# 	def __init__(self, site, user):
# 	def __enter__(self):
# 	def __exit__(self, type, value, trace):
# 	class MyJasperCustomScripletDefault(JasperCustomScripletDefault):
# class FrappeContext:


import frappe
import jasper_erpnext_report.core.JasperRoot as Jr
from frappe.model.document import Document
from jasper_erpnext_report.utils.utils import jaspersession_set_value
# Copyright (c) 2013, Luis Fernandes and contributors
# For license information, please see license.txt

from __future__ import unicode_literals


class JasperServerConfig(Document):
	def on_update(self):

# Path: jasper_erpnext_report/utils/utils.py
# def jasper_report_names_from_db(origin="both", filters_report=None, filters_param=None, filters_permrole=None):
# def jasper_print_formats(doc):
# def validate_print_permission(doc):
# def import_all_jasper_remote_reports(docs, force=True):
# def check_queryString_with_param(query, param):
# def check_queryString_param(query, param):
# def get_default_param_value(param, error=True):
# def call_hook_for_param(doc, method, *args):
# def call_hook_for_param_with_default(doc, hook_name, *args):
# def testHookScriptlet(JasperScriptlet, ids, data, cols, cur_doctype, cur_docname):
# 		def __init__(self, JasperScriplet, ids=None, data=None, cols=None, doctype=None):
# 		def test(self, args):
# def make_jasper_hooks_path():
# def get_hook_module(hook_name, report_name=None):
# def jasper_run_method(hook_name, *args, **kargs):
# def jasper_run_method_once_with_default(hook_name, docname, default):
# def check_jasper_perm(perms, ptypes=("read",), user=None):
# 		def check_perm(perms, user_roles, ptype):
# def check_frappe_permission(doctype, docname, ptypes=("read", )):
# def jasper_users_login(user):
# def pipInstall(package=None):
# def get_Frappe_Version(version=None):
# def getFrappeVersion():
# def add_to_time_str(date=None, hours=0, days=0, weeks=0):
# 	def __init__(self, site, user):
# 	def __enter__(self):
# 	def __exit__(self, type, value, trace):
# 	class MyJasperCustomScripletDefault(JasperCustomScripletDefault):
# class FrappeContext:


# Path: jasper_erpnext_report/jasper_erpnext_report/doctype/jasperserverconfig/jasperserverconfig.py
import frappe
import jasper_erpnext_report.core.JasperRoot as Jr
from frappe.model.document import Document
from jasper_erpnext_report.utils.utils import jaspersession_set_value

# Copyright (c) 2013, Luis Fernandes and contributors
# For license information, please see license.txt

from __future__ import unicode_literals


class JasperServerConfig(Document):
	def on_update(self):

		jaspersession_set_value("jasper_ignore_perm_roles", self.jasper_ignore_perm_roles)