From cac68a41107503b9f485ca1f64ecaaaa1c3ad218 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 10 Jan 2013 17:43:28 +0000 Subject: [PATCH] Gramps Version number now includes svn svn: r21051 --- gramps/webapp/grampsdb/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/webapp/grampsdb/views.py b/gramps/webapp/grampsdb/views.py index 06ccd591c..3e15e43b9 100644 --- a/gramps/webapp/grampsdb/views.py +++ b/gramps/webapp/grampsdb/views.py @@ -59,14 +59,15 @@ from django.utils import simplejson # Gramps Modules # #------------------------------------------------------------------------ +from gramps.gen.const import VERSION + +# Gramps-connect imports: import gramps.webapp from gramps.webapp.utils import _, build_args from gramps.webapp.grampsdb.models import * from gramps.webapp.grampsdb.view import * from gramps.webapp.dbdjango import DbDjango import gramps.cli.user -from gramps.gen.const import VERSION_TUPLE -from gramps.gen.svn_revision import get_svn_revision # Menu: (, //, | None, Need authentication ) MENU = [ @@ -101,7 +102,7 @@ def context_processor(request): else: context["css_theme"] = "Web_Mainz.css" # Other things for all environments: - context["gramps_version"] = ".".join([str(v) for v in VERSION_TUPLE]) + " " + get_svn_revision() + context["gramps_version"] = VERSION context["views"] = VIEWS context["menu"] = MENU context["None"] = None