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
This commit is contained in:
Goffi 2014-03-22 17:48:10 +01:00
commit 6d768028d1

View file

@ -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 @@ class SatIdentityHandler(XMPPHandler):
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 []