示例#1
0
文件: uwsgicc.py 项目: xwssole/uwsgi
def rpc():
    node = str(request.form['node'])

    fargs = str(request.form['args'])

    args = fargs.split()

    if len(args) > 0:
        ret = uwsgi.rpc(str(node), str(request.form['func']), *map(str, args))
    else:
        ret = uwsgi.rpc(str(node), str(request.form['func']))

    #flash("rpc \"%s\" returned: %s" % (request.form['func'], ret) )

    return ret
示例#2
0
文件: uwsgicc.py 项目: 20tab/uwsgi
def rpc():
    node = str(request.form['node'])

    fargs = str(request.form['args'])

    args = fargs.split()


    if len(args) > 0:
        ret = uwsgi.rpc(str(node), str(request.form['func']), *map(str, args))
    else:
        ret = uwsgi.rpc(str(node), str(request.form['func']))

    #flash("rpc \"%s\" returned: %s" % (request.form['func'], ret) )

    return ret
def application(env, start_response):
    start_response('200 Ok', [('Content-Type', 'text/html')])
    return uwsgi.rpc('127.0.0.1:3031', 'hello')
示例#4
0
文件: wsgy.py 项目: kocicjelena/env
def helloapp(env, start_response):
	start_response('200 Ok', [('Content-Type', 'text/html')])
	return uwsgi.rpc('127.0.0.1:3031', 'hello')
示例#5
0
文件: rpc.py 项目: 20tab/uwsgi
import uwsgi


def hello():
    return "Hello World"

print uwsgi.register_rpc("hello", hello)


print uwsgi.rpc(None, "hello")
示例#6
0
import uwsgi


def hello():
    return "Hello World"


print(uwsgi.register_rpc("hello", hello))

print(uwsgi.rpc(None, "hello"))
示例#7
0
文件: rpc.py 项目: EasyPost/uwsgi
import uwsgi


def hello():
    return "Hello World"

print(uwsgi.register_rpc("hello", hello))


print(uwsgi.rpc(None, "hello"))
示例#8
0
import uwsgi


def hello():
    return "Hello World"


print uwsgi.register_rpc("hello", hello)

print uwsgi.rpc(None, "hello")
示例#9
0
 def rpc(self, endpoint, func, *params):
     return uwsgi.rpc(endpoint, func, *params)