def help(): """Devolve a pagina de Ajuda""" window_id = str(get_window_id()) set_base_context(window_id) ctx_dict = get_context(window_id) ctx_dict['window_id'] = window_id ctx_dict['name'] = 'help' ctx_dict['title'] = 'Ajuda' code = """ <textarea rows="30" class="small-12 large-12 columns"> """ code += """ Ajuda Por Implementar... """ code += """ </textarea> """ ctx_dict['form'] = code set_context(window_id, ctx_dict) return ctx_dict
def about(): """Devolve a pagina about""" window_id = str(get_window_id()) set_base_context(window_id) ctx_dict = get_context(window_id) ctx_dict['window_id'] = window_id ctx_dict['name'] = 'about' ctx_dict['title'] = 'Sobre' code = """ <div class="small-12 large-12 columns"> <textarea rows="30" readonly> """ code += """ Sobre o ERP+ Versão 1.0 de 2015 O ERP + é uma plataforma de Gestão sobre a qual qualquer pessoa pode desenvolver objectos que suportem o seu negócio ou actividade. Bom trabalho Contactos: Dario Costa +238 983 04 90 """ code += """ </textarea> </div> """ ctx_dict['form'] = code set_context(window_id, ctx_dict) return ctx_dict
def main(): """Funçao index""" print('Init do main_route') window_id = str(get_window_id()) print(window_id) set_base_context(window_id) print('oi') ctx_dict = get_context(window_id) print(ctx_dict) ctx_dict['window_id'] = window_id ctx_dict['name'] = 'index' ctx_dict['title'] = 'ERP +' ctx_dict['form'] = '' print(ctx_dict) set_context(window_id, ctx_dict) return ctx_dict
def licence(): """Devolve a pagina da Licença""" window_id = str(get_window_id()) set_base_context(window_id) ctx_dict = get_context(window_id) ctx_dict['window_id'] = window_id ctx_dict['name'] = 'licence' ctx_dict['title'] = 'Licença' licence_file = open('/var/www/core/help/licence.txt', 'r', encoding='utf8') code = """ <textarea rows="30" class="small-12 large-12 columns"> """ code += licence_file.read() code += """ </textarea> """ ctx_dict['form'] = code set_context(window_id, ctx_dict) return ctx_dict
def update(): """Devolve a pagina de Actualizaçao da Implementacao Local""" window_id = str(get_window_id()) set_base_context(window_id) ctx_dict = get_context(window_id) ctx_dict['window_id'] = window_id ctx_dict['name'] = 'update' ctx_dict['title'] = 'Actualização' code = """ <textarea rows="30" class="small-12 large-12 columns"> """ code += """ Actualização Por Implementar... """ code += """ </textarea> """ ctx_dict['form'] = code set_context(window_id, ctx_dict) return ctx_dict