diff src/core/xmpp.py @ 923:e77948faaef3

core: removed default_config: - constants in core.default_config moved to core.constants - removed unused host.getConst and host.setConst - APP_NAME* used where it make sense
author Goffi <goffi@goffi.org>
date Sat, 22 Mar 2014 17:48:10 +0100
parents 19d7d077478a
children 955e5c781a40
line wrap: on
line diff
--- a/src/core/xmpp.py	Sat Mar 22 15:34:05 2014 +0100
+++ b/src/core/xmpp.py	Sat Mar 22 17:48:10 2014 +0100
@@ -18,6 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _
+from sat.core.constants import Const as C
 from twisted.internet import task, defer
 from twisted.words.protocols.jabber import jid, xmlstream
 from wokkel import client, disco, xmppim, generic, compat, delay, iwokkel
@@ -475,7 +476,7 @@
     implements(iwokkel.IDisco)
 
     def getDiscoInfo(self, requestor, target, nodeIdentifier=''):
-        return [disco.DiscoIdentity(u"client", u"pc", u"Salut à Toi")]
+        return [disco.DiscoIdentity(u"client", u"pc", C.APP_NAME)]
 
     def getDiscoItems(self, requestor, target, nodeIdentifier=''):
         return []