File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class DBAuthorizationPolicy(AbstractAuthorizationPolicy):
10
10
def __init__ (self , dbengine ):
11
11
self .dbengine = dbengine
12
12
13
- def authorized_userid (self , identity ):
13
+ async def authorized_userid (self , identity ):
14
14
async with self .dbengine as conn :
15
15
where = sa .and_ (db .users .c .login == identity ,
16
16
sa .not_ (db .users .c .disabled ))
Original file line number Diff line number Diff line change 13
13
from demo .handlers import Web
14
14
15
15
16
- def init (loop ):
16
+ async def init (loop ):
17
17
redis_pool = await create_pool (('localhost' , 6379 ))
18
18
db_engine = await create_engine (user = 'aiohttp_security' ,
19
19
password = 'aiohttp_security' ,
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ aiopg[sa]==0.13.1
10
10
aioredis == 1.0.0
11
11
hiredis == 0.2.0
12
12
passlib == 1.7.1
13
+ cryptography == 2.1.4
13
14
aiohttp == 2.3.7
14
15
pytest-aiohttp == 0.3.0
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ def read(f):
42
42
'Intended Audience :: Developers' ,
43
43
'Programming Language :: Python' ,
44
44
'Programming Language :: Python :: 3' ,
45
- 'Programming Language :: Python :: 3.4' ,
46
45
'Programming Language :: Python :: 3.5' ,
47
46
'Programming Language :: Python :: 3.6' ,
48
47
'Topic :: Internet :: WWW/HTTP' ,
You can’t perform that action at this time.
0 commit comments