changeset 291:7c79d4a8c9e6

plugins: fixed bad import names
author Goffi <goffi@goffi.org>
date Sun, 06 Feb 2011 23:49:27 +0100
parents 59a82af700e2
children f7bd973bba5a
files src/plugins/plugin_misc_tarot.py src/plugins/plugin_xep_0045.py src/plugins/plugin_xep_0054.py src/plugins/plugin_xep_0060.py src/plugins/plugin_xep_0065.py src/plugins/plugin_xep_0077.py src/plugins/plugin_xep_0096.py src/plugins/plugin_xep_0100.py src/plugins/plugin_xep_0115.py
diffstat 9 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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": [],
--- 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": [],
--- 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": [],
--- 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",
--- 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": [],
--- 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()
--- 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
--- 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": [],