You are overriding __getitem__ in auth, so your usual dict.__getitem__ isn't invoked. You are returning an `auth` object from your overrides __getitem__.
> On Feb 17, 2018, at 09:53, Einar Johnson <[email protected]> wrote: > > Hi, > I am trying to resolve this issue: > https://stackoverflow.com/questions/48826868/building-a-rest-api-in-pyramid-using-traversal > The webkey view callable is never executed when I travel to > localhost:6543/auth/webkey or any URI after the /auth part. The context=auth > callable is always executed on these URI´s, can´t get my head around why this > is happening. Any help/input would be greatly appreciated. > > Sincerely > E > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/46d498ca-374e-42c2-af66-36f028a7a61e%40googlegroups.com > > <https://groups.google.com/d/msgid/pylons-discuss/46d498ca-374e-42c2-af66-36f028a7a61e%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/2436AC7F-9DAB-4FF1-B684-2810C2EC326E%400x58.com. For more options, visit https://groups.google.com/d/optout.
