Advertisement
Guest User

handler.wsgi

a guest
Mar 1st, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. #-*- coding: utf-8 -*-
  2.  
  3. import sys
  4. import os
  5. from os.path import join, dirname, abspath
  6.  
  7. from rpclib.util.simple import wsgi_soap11_application
  8.  
  9. cmd_dir = abspath(dirname(__file__))
  10. os.chdir(cmd_dir)
  11. sys.path.insert(0, cmd_dir)
  12.  
  13. from info_service import InfoService
  14.  
  15. import logging
  16. logging.basicConfig(filename='log',
  17.                     filemode='a',
  18.                     level=logging.DEBUG)
  19. logging.getLogger('rpclib.protocol.xml').setLevel(logging.DEBUG)
  20. logging.info("starting... \n")
  21.  
  22. application = wsgi_soap11_application(
  23.         [InfoService], 'rpclib.examples.hello.soap')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement