On 23 ноя, 23:50, João Pinto <
lamego.pi...@gmail.com> wrote:
> Have you checked the tools priority ?
> Your auth tool must have an higher priority to make sure it's called after
> the session tool.
>
I tried to set different priorities in [0..100] -- but get this error
again:
if __name__ == '__main__':
import os.path
thisdir = os.path.dirname(__file__)
cherrypy.tools.my_basic_auth = cherrypy.Tool('on_start_resource',
my_basic_auth, priority=100)
cherrypy.quickstart(root, "/", config=os.path.join(thisdir,
"site.conf"))
==
Best,
Yosifov P.