Guest User

bino-echobot-error

a guest
Aug 31st, 2010
145
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #test script
  2. import xmlrpclib
  3.  
  4. s = xmlrpclib.ServerProxy("http://localhost:50008")
  5. print s.dispatch("a")
  6. ######################################
  7. #echobot-error
  8. 2010-08-31 22:14:39+0700 [HTTPChannel,0,127.0.0.1] Unhandled Error
  9. Traceback (most recent call last):
  10. File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 125, in process
  11. self.render(resrc)
  12. File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 132, in render
  13. body = resrc.render(self)
  14. File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 210, in render
  15. return m(request)
  16. File "/usr/lib/python2.6/dist-packages/twisted/web/xmlrpc.py", line 123, in render_POST
  17. d = defer.maybeDeferred(function, *args)
  18. --- <exception caught here> ---
  19. File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 117, in maybeDeferred
  20. result = f(*args, **kw)
  21. File "/home/bino/Documents/iwic/kode/twisted1/echobot.py", line 50, in xmlrpc_dispatch
  22. return self.fc.mycall(m)
  23. File "/home/bino/Documents/iwic/kode/twisted1/echobot.py", line 37, in mycall
  24. xmppclient.send(reply)
  25. exceptions.NameError: global name 'xmppclient' is not defined
RAW Paste Data