Created
March 22, 2013 22:08
-
-
Save skimbrel/5225167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[14:33:02] <skimbrel> i'm working on implementing an oembed (http://oembed.com/) endpoint for my app. it has to accept a full URL as argument and return some information about the resource. since i already have a route that matches the urls that this will be getting, how do i reuse pyramid's dispatch to extract a matchdict from it? | |
[14:33:34] <skimbrel> i.e. i have an incoming request to the API that looks like this: http://www.flickr.com/services/oembed/?url=http%3A//www.flickr.com/photos/bees/2341623661/ | |
[14:34:03] <skimbrel> and i want to run the url param through the pyramid dispatch and get the resulting view and matchdict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment