Problems building a REST API using Pyramid

41 views
Skip to first unread message

Einar Johnson

unread,
Feb 18, 2018, 12:23:58 AM2/18/18
to pylons-discuss
Hi,
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

Bert JW Regeer

unread,
Feb 18, 2018, 10:18:17 PM2/18/18
to pylons-...@googlegroups.com
You are overriding __getitem__ in auth, so your usual dict.__getitem__ isn't invoked. You are returning an `auth` object from your overrides __getitem__.

--
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 pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/46d498ca-374e-42c2-af66-36f028a7a61e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages