From 5e5578e470b3a3a580a9082987a499e0b96b504f Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 4 Sep 2014 14:34:23 -0300 Subject: [PATCH] rout favoritos --- wscacicneo/templates/favoritos.pt | 9 ++++++--- wscacicneo/views.py | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/wscacicneo/templates/favoritos.pt b/wscacicneo/templates/favoritos.pt index de8fee2..2b9afac 100644 --- a/wscacicneo/templates/favoritos.pt +++ b/wscacicneo/templates/favoritos.pt @@ -28,7 +28,7 @@
  • Questionar Coleta
  • - + Notificações @@ -39,14 +39,17 @@
    Favoritos
    - +
    -
      +
        +
      • + ${doc} +
    diff --git a/wscacicneo/views.py b/wscacicneo/views.py index 811bba8..9a7c00e 100644 --- a/wscacicneo/views.py +++ b/wscacicneo/views.py @@ -118,8 +118,8 @@ def favoritos(request): senha = 'senha' ) search = user_obj.search_user(matricula) - print(search.results[0]) - return { } + favoritos = search.results[0].favoritos + return {'favoritos': favoritos } @view_config(route_name='config', renderer='templates/config.pt') def config(request): -- libgit2 0.21.2