Skip to content

Instantly share code, notes, and snippets.

@mvantellingen
Created January 15, 2013 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mvantellingen/4539029 to your computer and use it in GitHub Desktop.
Save mvantellingen/4539029 to your computer and use it in GitHub Desktop.
@view_config(route_name='my-route')
def my_view(request):
# here i want to know if path-1 or path-2 was taken, preferably via a var n matchdict?
config.add_route('my-route', '/path-1/view')
config.add_route('my-route', '/path-2/view')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment