diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2017-10-18 22:15:32 -0400 |
---|---|---|
committer | Leo wang <grakiss.wanglei@huawei.com> | 2017-10-20 03:29:26 +0000 |
commit | 54bc0f28fd9b5ec6675401d6c3322b30e72e7d9c (patch) | |
tree | c203b151a705b53eb85e15af6ac62169857a2603 /cvp/opnfv_testapi/resources/application_handlers.py | |
parent | 4f2c6191c68567e3fd7ee7e8bcb737c3194fbb2e (diff) |
[web-cvp]share result by email
JIRA: DOVETAIL-529
It may be easier to get other people's email than his user id
Change-Id: Ia5f9aa72d3c79bd3f5e69dad98b3f188cdaafc3d
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/opnfv_testapi/resources/application_handlers.py')
-rw-r--r-- | cvp/opnfv_testapi/resources/application_handlers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cvp/opnfv_testapi/resources/application_handlers.py b/cvp/opnfv_testapi/resources/application_handlers.py index 16dae4f3..6986b9ef 100644 --- a/cvp/opnfv_testapi/resources/application_handlers.py +++ b/cvp/opnfv_testapi/resources/application_handlers.py @@ -31,6 +31,8 @@ class GenericApplicationHandler(handlers.GenericApiHandler): class ApplicationsCLHandler(GenericApplicationHandler): @swagger.operation(nickname="queryApplications") + @web.asynchronous + @gen.coroutine def get(self): """ @description: Retrieve result(s) for a application project @@ -64,7 +66,8 @@ class ApplicationsCLHandler(GenericApplicationHandler): 'per_page': CONF.api_results_per_page } - self._list(query=self.set_query(), **limitations) + query = yield self.set_query() + yield self._list(query=query, **limitations) logging.debug('list end') @swagger.operation(nickname="createApplication") |