Hello, can someone help me with this please?
This route works as expected
This route works as expected
@app.route( '/download', method=['GET', 'POST'] ) def download( pymydb ):while the following, in which iam trying with http auth
@app.route( '/download', method=['GET', 'POST'] ) @auth_basic(counters.is_authenticated_user) def download( pymydb ):fails by giving me the error
Error:TypeError("download() missing 1 required positional argument: 'pymydb'",)
Traceback:
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/bottle.py", line 862, in _handle
return route.call(**args)
File "/usr/lib64/python3.6/site-packages/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/usr/lib64/python3.6/site-packages/bottle.py", line 2690, in wrapper
return func(*a, **ka)
TypeError: download() missing 1 required positional argument: 'pymydb'
Why is that? How will i be able to enable http auth in this route?