Exemple #1
0
    def __init__(self, mapper):
        mapper = mapper or routes.Mapper()

        rpc_resource = rpc.create_resource()
        mapper.connect("/rpc", controller=rpc_resource,
                       conditions=dict(method=["POST"]),
                       action="__call__")
        super(API, self).__init__(mapper)
Exemple #2
0
    def __init__(self, mapper):
        mapper = mapper or routes.Mapper()

        rpc_resource = rpc.create_resource()
        mapper.connect("/rpc", controller=rpc_resource,
                       conditions=dict(method=["POST"]),
                       action="__call__")
        super(API, self).__init__(mapper)
Exemple #3
0
def init(mapper):
    rpc_resource = rpc.create_resource()
    mapper.connect("/rpc",
                   controller=rpc_resource,
                   conditions=dict(method=["POST"]),
                   action="__call__")
Exemple #4
0
def init(mapper):
    rpc_resource = rpc.create_resource()
    mapper.connect("/rpc", controller=rpc_resource,
                   conditions=dict(method=["POST"]),
                   action="__call__")