Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
separate db methods from handler.py
[releng.git]
/
utils
/
test
/
testapi
/
opnfv_testapi
/
ui
/
auth
/
user.py
diff --git
a/utils/test/testapi/opnfv_testapi/ui/auth/user.py
b/utils/test/testapi/opnfv_testapi/ui/auth/user.py
index
2fca2a8
..
955cdee
100644
(file)
--- a/
utils/test/testapi/opnfv_testapi/ui/auth/user.py
+++ b/
utils/test/testapi/opnfv_testapi/ui/auth/user.py
@@
-2,6
+2,7
@@
from tornado import gen
from tornado import web
from opnfv_testapi.common import raises
from tornado import web
from opnfv_testapi.common import raises
+from opnfv_testapi.db import api as dbapi
from opnfv_testapi.ui.auth import base
from opnfv_testapi.ui.auth import base
@@
-12,7
+13,7
@@
class ProfileHandler(base.BaseHandler):
openid = self.get_secure_cookie('openid')
if openid:
try:
openid = self.get_secure_cookie('openid')
if openid:
try:
- user = yield
self.db_find_one(
{'openid': openid})
+ user = yield
dbapi.db_find_one(self.table,
{'openid': openid})
self.finish_request({
"openid": user.get('openid'),
"email": user.get('email'),
self.finish_request({
"openid": user.get('openid'),
"email": user.get('email'),