comparison 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
comparison
equal deleted inserted replaced
922:c897c8d321b3 923:e77948faaef3
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _ 20 from sat.core.i18n import _
21 from sat.core.constants import Const as C
21 from twisted.internet import task, defer 22 from twisted.internet import task, defer
22 from twisted.words.protocols.jabber import jid, xmlstream 23 from twisted.words.protocols.jabber import jid, xmlstream
23 from wokkel import client, disco, xmppim, generic, compat, delay, iwokkel 24 from wokkel import client, disco, xmppim, generic, compat, delay, iwokkel
24 from logging import debug, info, warning, error 25 from logging import debug, info, warning, error
25 from sat.core import exceptions 26 from sat.core import exceptions
473 etc, we should implement a way to dynamically update identities through the bridge """ 474 etc, we should implement a way to dynamically update identities through the bridge """
474 #TODO: dynamic identity update (see docstring). Note that a XMPP entity can have several identities 475 #TODO: dynamic identity update (see docstring). Note that a XMPP entity can have several identities
475 implements(iwokkel.IDisco) 476 implements(iwokkel.IDisco)
476 477
477 def getDiscoInfo(self, requestor, target, nodeIdentifier=''): 478 def getDiscoInfo(self, requestor, target, nodeIdentifier=''):
478 return [disco.DiscoIdentity(u"client", u"pc", u"Salut à Toi")] 479 return [disco.DiscoIdentity(u"client", u"pc", C.APP_NAME)]
479 480
480 def getDiscoItems(self, requestor, target, nodeIdentifier=''): 481 def getDiscoItems(self, requestor, target, nodeIdentifier=''):
481 return [] 482 return []