Example #1
0
    parser.add_option("-l",
                      action="store_true",
                      dest="log_debug",
                      help="log debugging output")
    (options, args) = parser.parse_args()

    amfast.log_debug = options.log_debug

    cp_options = {
        'global': {
            'server.socket_port': int(options.port),
            'server.socket_host': str(options.domain),
        },
        '/': {
            'tools.staticdir.on': True,
            'tools.staticdir.dir': os.path.join(os.getcwd(), '../flex/deploy')
        }
    }

    channel_set = App()
    rpc_channel = CherryPyChannel('amf')
    channel_set.mapChannel(rpc_channel)
    utils.setup_channel_set(channel_set)

    app = App()
    cherrypy.tree.graft(rpc_channel, '/amf')
    cherrypy.quickstart(app, '/', config=cp_options)

    print "Serving on %s:%s" % (options.domain, options.port)
    print "Press ctrl-c to halt."
Example #2
0
    parser.add_option("-d", default="localhost",
        dest="domain", help="domain to serve")
    parser.add_option("-l", action="store_true",
        dest="log_debug", help="log debugging output")
    (options, args) = parser.parse_args()

    amfast.log_debug = options.log_debug

    cp_options = {
        'global':
        {
            'server.socket_port': int(options.port),
            'server.socket_host': str(options.domain),
        },
        '/':
        {
            'tools.staticdir.on': True,
            'tools.staticdir.dir': os.path.join(os.getcwd(), '../flex/deploy')
        }
    }

    channel_set = App()
    rpc_channel = CherryPyChannel('amf')
    channel_set.mapChannel(rpc_channel)
    utils.setup_channel_set(channel_set)

    cherrypy.quickstart(channel_set, '/', config=cp_options)

    print "Serving on %s:%s" % (options.domain, options.port)
    print "Press ctrl-c to halt."
Example #3
0
 def __init__(self):
     self.channel_set = ChannelSet()
     rpc_channel = WsgiChannel('amf-channel', endpoint=PyAmfEndpoint())
     self.channel_set.mapChannel(rpc_channel)
     utils.setup_channel_set(self.channel_set)
Example #4
0
 def __init__(self):
     self.channel_set = ChannelSet()
     rpc_channel = WsgiChannel('amf-channel')
     self.channel_set.mapChannel(rpc_channel)
     utils.setup_channel_set(self.channel_set)
Example #5
0
 def __init__(self):
     self.channel_set = ChannelSet()
     rpc_channel = WsgiChannel('amf-channel')
     self.channel_set.mapChannel(rpc_channel)
     utils.setup_channel_set(self.channel_set)