def render(self, country, lan, company=None): with open("templates/modules/module_text/agencyAdd.json") as json_file: form = json.load(json_file) tools = Tools() agency_list = tools.get_list_of_agencies(country) return self.render_string('modules/agencyAdd.html', c=company, country=country, agency_list=json.dumps(agency_list), lan=lan, form=form[lan][country])
def render(self, country, lan, company=None): with open("templates/modules/module_text/agencyAdd.json") as json_file: form = json.load(json_file) tools = Tools() agency_list = tools.get_list_of_agencies(country) return self.render_string( 'modules/agencyAdd.html', c=company, country=country, agency_list = json.dumps(agency_list), lan=lan, form=form[lan][country] )