#!/usr/bin/env python # Google App Engine for Flash projects with PyAMF. # Copyright (c) 2008 Aral Balkan (http://aralbalkan.com) # Released under the Open Source MIT License # # Blog post: http://aralbalkan.com/1307 # Google App Engine: http://code.google.com/appengine/ # PyAMF: http://pyamf.org import wsgiref.handlers from pyamf.remoting.gateway.wsgi import WSGIGateway # You can also use a wildcard import services here. from services import EchoService from services import user # Service mappings s = { 'EchoService': EchoService.EchoService, 'user': user } def main(): application = WSGIGateway(s) wsgiref.handlers.CGIHandler().run(application) if __name__ == '__main__': main()