plugins: fixed bad import names

This commit is contained in:
Goffi 2011-02-06 23:49:27 +01:00
commit 27274bfda0
9 changed files with 16 additions and 16 deletions

View file

@ -50,7 +50,7 @@ PLUGIN_INFO = {
"import_name": "Tarot",
"type": "Misc",
"protocols": [],
"dependencies": ["XEP_0045"],
"dependencies": ["XEP-0045"],
"main": "Tarot",
"handler": "yes",
"description": _("""Implementation of Tarot card game""")
@ -408,7 +408,7 @@ class Tarot():
if self.games.has_key(room_jid):
warning (_("Tarot game already started in room %s") % room_jid.userhost())
else:
room_nick = self.host.plugins["XEP_0045"].getRoomNick(room_jid.userhost(), profile)
room_nick = self.host.plugins["XEP-0045"].getRoomNick(room_jid.userhost(), profile)
if not room_nick:
error ('Internal error')
return

View file

@ -43,7 +43,7 @@ except ImportError:
PLUGIN_INFO = {
"name": "XEP 0045 Plugin",
"import_name": "XEP_0045",
"import_name": "XEP-0045",
"type": "XEP",
"protocols": ["XEP-0045"],
"dependencies": [],

View file

@ -53,7 +53,7 @@ VCARD_UPDATE = PRESENCE + '/x[@xmlns="' + NS_VCARD_UPDATE + '"]'
PLUGIN_INFO = {
"name": "XEP 0054 Plugin",
"import_name": "XEP_0054",
"import_name": "XEP-0054",
"type": "XEP",
"protocols": ["XEP-0054", "XEP-0153"],
"dependencies": [],

View file

@ -31,7 +31,7 @@ from zope.interface import implements
PLUGIN_INFO = {
"name": "Publish-Subscribe",
"import_name": "XEP_0060",
"import_name": "XEP-0060",
"type": "XEP",
"protocols": ["XEP-0060"],
"dependencies": [],

View file

@ -81,7 +81,7 @@ BS_REQUEST = IQ_SET + '/query[@xmlns="' + NS_BS + '"]'
PLUGIN_INFO = {
"name": "XEP 0065 Plugin",
"import_name": "XEP_0065",
"import_name": "XEP-0065",
"type": "XEP",
"protocols": ["XEP-0065"],
"main": "XEP_0065",

View file

@ -33,7 +33,7 @@ NS_REG = 'jabber:iq:register'
PLUGIN_INFO = {
"name": "XEP 0077 Plugin",
"import_name": "XEP_0077",
"import_name": "XEP-0077",
"type": "XEP",
"protocols": ["XEP-0077"],
"dependencies": [],

View file

@ -43,10 +43,10 @@ SI_REQUEST = IQ_SET + '/si[@xmlns="' + NS_SI + '"]'
PLUGIN_INFO = {
"name": "XEP 0096 Plugin",
"import_name": "XEP_0096",
"import_name": "XEP-0096",
"type": "XEP",
"protocols": ["XEP-0096"],
"dependencies": ["XEP_0065"],
"dependencies": ["XEP-0065"],
"main": "XEP_0096",
"handler": "yes",
"description": _("""Implementation of SI File Transfert""")
@ -85,7 +85,7 @@ class XEP_0096():
"""Called on confirmation answer"""
if accepted:
data['size'] = self._waiting_for_approval[id][2]
self.host.plugins["XEP_0065"].setData(data, id)
self.host.plugins["XEP-0065"].setData(data, id)
self.approved(id)
else:
debug (_("Transfert [%s] refused"), id)
@ -161,7 +161,7 @@ class XEP_0096():
offer=client.IQ(xmlstream,'set')
debug ("Transfert ID: %s", offer["id"])
self.host.plugins["XEP_0065"].sendFile(offer["id"], filepath, str(statinfo.st_size))
self.host.plugins["XEP-0065"].sendFile(offer["id"], filepath, str(statinfo.st_size))
offer["from"]=current_jid.full()
offer["to"]=jid.JID(to).full()

View file

@ -30,10 +30,10 @@ from wokkel import disco, iwokkel
PLUGIN_INFO = {
"name": "Gateways Plugin",
"import_name": "XEP_0100",
"import_name": "XEP-0100",
"type": "XEP",
"protocols": ["XEP-0100"],
"dependencies": ["XEP_0077"],
"dependencies": ["XEP-0077"],
"main": "XEP_0100",
"description": _("""Implementation of Gateways protocol""")
}
@ -110,8 +110,8 @@ class XEP_0100():
profile = self.host.memory.getProfileName(profile_key)
assert(profile) #FIXME: return an error here
if action == 'SUBMIT':
self.host.plugins["XEP_0077"].addTrigger(target, self.registrationSuccessful, profile)
return self.host.plugins["XEP_0077"].in_band_submit(action, target, fields, profile)
self.host.plugins["XEP-0077"].addTrigger(target, self.registrationSuccessful, profile)
return self.host.plugins["XEP-0077"].in_band_submit(action, target, fields, profile)
def findGateways(self, target, profile_key='@DEFAULT@'):
"""Find gateways in the target JID, using discovery protocol

View file

@ -45,7 +45,7 @@ CAPABILITY_UPDATE = PRESENCE + '/c[@xmlns="' + NS_ENTITY_CAPABILITY + '"]'
PLUGIN_INFO = {
"name": "XEP 0115 Plugin",
"import_name": "XEP_0115",
"import_name": "XEP-0115",
"type": "XEP",
"protocols": ["XEP-0115"],
"dependencies": [],