Skip to content

Instantly share code, notes, and snippets.

@sontek
Last active August 29, 2015 14:10
Show Gist options
  • Save sontek/304e0a3675cefcc52960 to your computer and use it in GitHub Desktop.
Save sontek/304e0a3675cefcc52960 to your computer and use it in GitHub Desktop.
pyramid cli output
# Pyramid 1.5 and lower
Name Pattern View
---- ------- ----
debugtoolbar /_debug_toolbar/*subpath <function decorator at 0x349a398>
__static/ /static/*subpath <function <pyramid.static.static_view object at 0x3421890> at 0x349a758>
__static2/ /static2/*subpath <function <pyramid.static.static_view object at 0x3421950> at 0x349a9b0>
__pdt_images/ /pdt_images/*subpath <function <pyramid.static.static_view object at 0x3421a50> at 0x349ab90>
a / None
no_view_attached / None
route_and_view_attached / <function route_and_view_attached at 0x349f050>
only_post_on_route /route <function route_and_view_attached at 0x349f2a8>
only_post_on_view /view <function route_and_view_attached at 0x349f668>
method_intersection /intersection <function route_and_view_attached at 0x349fa28>
method_conflicts /conflicts <function route_and_view_attached at 0x349fde8>
multiview /multiview <pyramid.config.views.MultiView object at 0x34a08d0>
# Current master (Pyramid 1.6)
$ proutes demos/dummy_starter/development.ini
Name Pattern View
---- ------- ----
debugtoolbar /_debug_toolbar/*subpath pyramid.router.decorator
__static/ /static/*subpath pyramid.static.<pyramid.static.static_view object at 0x30ba590>
__static2/ /static2/*subpath pyramid.static.<pyramid.static.static_view object at 0x30ba650>
__pdt_images/ /pdt_images/*subpath pyramid.static.<pyramid.static.static_view object at 0x30ba750>
a / None
no_view_attached / None
route_and_view_attached / dummy_starter.standard_views.route_and_view_attached
only_post_on_route /route dummy_starter.standard_views.route_and_view_attached
only_post_on_view /view dummy_starter.standard_views.route_and_view_attached
method_intersection /intersection dummy_starter.standard_views.route_and_view_attached
method_conflicts /conflicts dummy_starter.standard_views.route_and_view_attached
multiview /multiview dummy_starter.standard_views.hello_world
# Pyramid CLI
$pyramid demos/dummy_starter/development.ini routes
Name Pattern View Method
---- ------- ---- ------
debugtoolbar /_debug_toolbar/*subpath <wsgiapp> *
__static/ /static/*subpath dummy_starter:static/ *
__static2/ /static2/*subpath /var/www/static/ *
__pdt_images/ /pdt_images/*subpath pyramid_debugtoolbar:static/img/ *
a / <unknown> *
no_view_attached / <unknown> *
route_and_view_attached / dummy_starter.standard_views.route_and_view_attached *
only_post_on_route /route dummy_starter.standard_views.route_and_view_attached POST
only_post_on_view /view dummy_starter.standard_views.route_and_view_attached POST
method_intersection /intersection dummy_starter.standard_views.route_and_view_attached POST
method_conflicts /conflicts dummy_starter.standard_views.route_and_view_attached <route mismatch>
multiview /multiview dummy_starter.standard_views.hello_world POST
multiview /multiview dummy_starter.standard_views.route_and_view_attached PATCH,GET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment