Skip to content

Instantly share code, notes, and snippets.

@riffm
Created August 7, 2009 13:07
Show Gist options
  • Save riffm/163885 to your computer and use it in GitHub Desktop.
Save riffm/163885 to your computer and use it in GitHub Desktop.
# -*- 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