changeset 970:2e052998c7eb

jp: using C.APP_URL for application url
author Goffi <goffi@goffi.org>
date Wed, 02 Apr 2014 12:11:07 +0200
parents 5c7707c958d8
children 8ca5c990ed92
files frontends/src/jp/base.py frontends/src/jp/constants.py
diffstat 2 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/base.py	Tue Apr 01 21:30:21 2014 +0200
+++ b/frontends/src/jp/base.py	Wed Apr 02 12:11:07 2014 +0200
@@ -40,6 +40,7 @@
 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 @@
 #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;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontends/src/jp/constants.py	Wed Apr 02 12:11:07 2014 +0200
@@ -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 <http://www.gnu.org/licenses/>.
+
+from sat_frontends.quick_frontend import constants
+
+
+class Const(constants.Const):
+
+    APP_NAME = "jp"