Пример #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)
Пример #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)
Пример #3
0
def init(mapper):
    rpc_resource = rpc.create_resource()
    mapper.connect("/rpc",
                   controller=rpc_resource,
                   conditions=dict(method=["POST"]),
                   action="__call__")
Пример #4
0
def init(mapper):
    rpc_resource = rpc.create_resource()
    mapper.connect("/rpc", controller=rpc_resource,
                   conditions=dict(method=["POST"]),
                   action="__call__")