# HG changeset patch # User Goffi # Date 1297032567 -3600 # Node ID 7c79d4a8c9e622db8ae70d1081f9fb8cd67ec90b # Parent 59a82af700e214a12ba7bb8a254e3693c5734536 plugins: fixed bad import names diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_misc_tarot.py --- a/src/plugins/plugin_misc_tarot.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_misc_tarot.py Sun Feb 06 23:49:27 2011 +0100 @@ -50,7 +50,7 @@ "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 @@ 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 diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0045.py --- a/src/plugins/plugin_xep_0045.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0045.py Sun Feb 06 23:49:27 2011 +0100 @@ -43,7 +43,7 @@ PLUGIN_INFO = { "name": "XEP 0045 Plugin", -"import_name": "XEP_0045", +"import_name": "XEP-0045", "type": "XEP", "protocols": ["XEP-0045"], "dependencies": [], diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0054.py --- a/src/plugins/plugin_xep_0054.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0054.py Sun Feb 06 23:49:27 2011 +0100 @@ -53,7 +53,7 @@ PLUGIN_INFO = { "name": "XEP 0054 Plugin", -"import_name": "XEP_0054", +"import_name": "XEP-0054", "type": "XEP", "protocols": ["XEP-0054", "XEP-0153"], "dependencies": [], diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0060.py --- a/src/plugins/plugin_xep_0060.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0060.py Sun Feb 06 23:49:27 2011 +0100 @@ -31,7 +31,7 @@ PLUGIN_INFO = { "name": "Publish-Subscribe", -"import_name": "XEP_0060", +"import_name": "XEP-0060", "type": "XEP", "protocols": ["XEP-0060"], "dependencies": [], diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0065.py --- a/src/plugins/plugin_xep_0065.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0065.py Sun Feb 06 23:49:27 2011 +0100 @@ -81,7 +81,7 @@ PLUGIN_INFO = { "name": "XEP 0065 Plugin", -"import_name": "XEP_0065", +"import_name": "XEP-0065", "type": "XEP", "protocols": ["XEP-0065"], "main": "XEP_0065", diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0077.py --- a/src/plugins/plugin_xep_0077.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0077.py Sun Feb 06 23:49:27 2011 +0100 @@ -33,7 +33,7 @@ PLUGIN_INFO = { "name": "XEP 0077 Plugin", -"import_name": "XEP_0077", +"import_name": "XEP-0077", "type": "XEP", "protocols": ["XEP-0077"], "dependencies": [], diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0096.py --- a/src/plugins/plugin_xep_0096.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0096.py Sun Feb 06 23:49:27 2011 +0100 @@ -43,10 +43,10 @@ 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 @@ """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 @@ 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() diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0100.py --- a/src/plugins/plugin_xep_0100.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0100.py Sun Feb 06 23:49:27 2011 +0100 @@ -30,10 +30,10 @@ 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 @@ 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 diff -r 59a82af700e2 -r 7c79d4a8c9e6 src/plugins/plugin_xep_0115.py --- a/src/plugins/plugin_xep_0115.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0115.py Sun Feb 06 23:49:27 2011 +0100 @@ -45,7 +45,7 @@ PLUGIN_INFO = { "name": "XEP 0115 Plugin", -"import_name": "XEP_0115", +"import_name": "XEP-0115", "type": "XEP", "protocols": ["XEP-0115"], "dependencies": [],