def get_my_company(self, **kw): user_id = int(kw.get('user_id', '0')) template = TemplateEnv.get_template('get-company.html') html_data = controller_admin.get_company(user_id) user_data = controller_admin.get_userinfo() html_data['user_id'] = user_id html_data['user_name'] = user_data["user_name"] html = template.render(html_data) return html
def new_partner(self): provinces = controller_admin.get_province() user_data = controller_admin.get_userinfo() template = TemplateEnv.get_template('new-partner.html') html_data = controller_admin.get_company(user_id=0) user_data = controller_admin.get_userinfo() html_data["provinces_old"] = provinces html_data['user_name'] = user_data["user_name"] html_data['logo_name'] = user_data["logo_name"] html = template.render(html_data) return html