diff sat.tac @ 106:138d82f64b6f

plugin CS: friends parsing
author Goffi <goffi@goffi.org>
date Sat, 26 Jun 2010 15:33:16 +0800
parents d2630fba8dfd
children 5ae370c71803
line wrap: on
line diff
--- a/sat.tac	Wed Jun 23 17:26:21 2010 +0800
+++ b/sat.tac	Sat Jun 26 15:33:16 2010 +0800
@@ -25,6 +25,8 @@
     'local_dir' : '~/.sat'
 }
 
+import gettext
+gettext.install('sat', "i18n", unicode=True)
 
 from twisted.application import internet, service
 from twisted.internet import glib2reactor, protocol, task
@@ -50,9 +52,6 @@
 from tools.xml_tools import tupleList2dataForm
 from glob import glob
 
-import gettext
-gettext.install('sat', "i18n", unicode=True)
-
 try:
     from twisted.words.protocols.xmlstream import XMPPHandler
 except ImportError:
@@ -568,7 +567,7 @@
         """
         if type=="button":
             try:
-                cb_name = self.memory.getParamA(data["name"], data["category"], "callback")
+                cb_name = data['callback_id']
             except KeyError:
                 error (_("Incomplete data"))
                 return ""