标签:name rpc 需要 终端 ref 控制 访问 blank ase
@http.route(‘/test‘, type = ‘json‘, auth = ‘public‘)
def test(self):
phases = http.request.env[‘project.task.type‘].search([])
list = []
dic = {}
for phase in phases:
list.append(phase.name)
dic[‘phases‘] = list
return json.dumps(dic)
标签:name rpc 需要 终端 ref 控制 访问 blank ase
原文地址:http://www.cnblogs.com/dancesir/p/6962018.html