Created
August 7, 2009 13:07
-
-
Save riffm/163885 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from servers import fastcgi | |
import os | |
from jsonrpcstaff import ServiceHandler, configLogger | |
import logging | |
configLogger(level=logging.DEBUG) | |
class Service(object): | |
def add(self, first, second): | |
raise Exception("bugaga") | |
return first + second | |
cur_dir = os.curdir | |
fastcgi(ServiceHandler(Service()), cur_dir, daemon=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment