From 9e6bd3c4ba99a0550c8db1b084c8728529b7cea7 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 16 Oct 2011 03:58:56 +0000 Subject: [PATCH] Messages; fixes throughout svn: r18333 --- src/Simple/_SimpleAccess.py | 4 +-- src/data/templates/gramps-base.html | 12 +++----- src/webapp/grampsdb/models.py | 19 +++++++++++-- src/webapp/grampsdb/views.py | 43 +++++++++++++++++------------ 4 files changed, 48 insertions(+), 30 deletions(-) diff --git a/src/Simple/_SimpleAccess.py b/src/Simple/_SimpleAccess.py index 47cb49f32..d4b202864 100644 --- a/src/Simple/_SimpleAccess.py +++ b/src/Simple/_SimpleAccess.py @@ -952,9 +952,9 @@ class SimpleAccess(object): elif isinstance(obj, gen.lib.Place): return place_name(self.dbase, obj.handle) elif isinstance(obj, gen.lib.Repository): - return obj.type + return obj.gramps_id elif isinstance(obj, gen.lib.Note): - return obj.type + return obj.gramps_id elif obj is None: return "" else: diff --git a/src/data/templates/gramps-base.html b/src/data/templates/gramps-base.html index b3601ee6c..7ae2db6e1 100644 --- a/src/data/templates/gramps-base.html +++ b/src/data/templates/gramps-base.html @@ -33,7 +33,6 @@
  • {{view.0}}
  • {% endfor %} {% if user.is_authenticated %} -
  • Reports
  • {% if next %}
  • Logout
  • {% else %} @@ -52,16 +51,13 @@ {% endblock %} -
    - {% if error %} - {{error}} - {% endif %} - {% if message %} - {{message}} - {% endif %}
    + {% for message in messages %} + {{message}} + {% endfor %} {% block content %} {% endblock %} +