diff --git a/wscacicneo/security.py b/wscacicneo/security.py index d0b4dea..e3cd7f7 100644 --- a/wscacicneo/security.py +++ b/wscacicneo/security.py @@ -1,5 +1,6 @@ #!/usr/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*-asdasd + # # 1. carregar usuário da sessão # # 2. carregar objeto usuário # # 3. pegar grupo do usuário @@ -9,16 +10,16 @@ from wscacicneo.model.user import User def groupfinder(userid, request): user_obj = User( - nome = 'asdasd', - matricula = 'asdasd', - email = 'asdsad', - orgao = 'asdsad', - telefone = 'sdasd', - cargo = 'asdasdasd', - setor = 'asdasd', - permissao = 'asdasd', - senha = 'sadasdasd', - favoritos = ['asdasdasdasd'] + nome = 'usuario', + matricula = '000000', + email = 'usuario@gov.br', + orgao = 'mpog', + telefone = '(11)1111-1111', + cargo = 'adm', + setor = 'ti', + permissao = 'Administrador', + senha = '123', + favoritos = ['favoritos'] ) usuario = user_obj.search_user_by_email(userid) permissao = usuario.results[0].permissao diff --git a/wscacicneo/templates/cadastro_coleta.pt b/wscacicneo/templates/cadastro_coleta.pt index 32ec03c..835ef43 100644 --- a/wscacicneo/templates/cadastro_coleta.pt +++ b/wscacicneo/templates/cadastro_coleta.pt @@ -9,6 +9,7 @@
@@ -21,15 +22,16 @@
-
Software List
+
Lista de Softwares
- -
- + + +
+
- +
Sistema Operacional
@@ -54,7 +56,7 @@
-
win32_bios
+
BIOS
@@ -64,7 +66,7 @@

-
win32_processor
+
Processador
@@ -94,11 +96,32 @@
+ + diff --git a/wscacicneo/templates/menu.pt b/wscacicneo/templates/menu.pt index 2d043ca..b20d2e8 100755 --- a/wscacicneo/templates/menu.pt +++ b/wscacicneo/templates/menu.pt @@ -9,16 +9,17 @@
  • Orgão - diff --git a/wscacicneo/utils/utils.py b/wscacicneo/utils/utils.py index b0b01be..b8bbaa6 100755 --- a/wscacicneo/utils/utils.py +++ b/wscacicneo/utils/utils.py @@ -31,5 +31,5 @@ class Utils: # Retorna um hex de um objeto hash, com uma senha encryptada def hash_password(password): - hash_object = hashlib.md5(password.encode()) + hash_object = hashlib.md5(password.encode("utf-8")) return hash_object.hexdigest() -- libgit2 0.21.2