From 647487fc1d9ad6bc93356c6941eb4ed209bedef1 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 2 Apr 2014 12:11:07 +0200 Subject: [PATCH] jp: using C.APP_URL for application url --- frontends/src/jp/base.py | 3 ++- frontends/src/jp/constants.py | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 frontends/src/jp/constants.py diff --git a/frontends/src/jp/base.py b/frontends/src/jp/base.py index a0a96919..d96f44b7 100644 --- a/frontends/src/jp/base.py +++ b/frontends/src/jp/base.py @@ -40,6 +40,7 @@ from sat.tools.jid import JID from sat_frontends.bridge.DBus import DBusBridgeFrontend from sat.core import exceptions import sat_frontends.jp +from sat_frontends.jp.constants import Const as C try: import progressbar except ImportError: @@ -50,7 +51,7 @@ except ImportError: #consts prog_name = u"jp" description = """This software is a command line tool for XMPP. -Get the latest version at http://sat.goffi.org""" +Get the latest version at """ + C.APP_URL copyleft = u"""Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Jérôme Poisson (aka Goffi) This program comes with ABSOLUTELY NO WARRANTY; diff --git a/frontends/src/jp/constants.py b/frontends/src/jp/constants.py new file mode 100644 index 00000000..f23504e9 --- /dev/null +++ b/frontends/src/jp/constants.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Primitivus: a SAT frontend +# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Jérôme Poisson (goffi@goffi.org) + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +from sat_frontends.quick_frontend import constants + + +class Const(constants.Const): + + APP_NAME = "jp"