Michael Merickel
2016-11-19 6d41b5de9dbc1eecc7307a3cf5084003828d2d44
require tuple variants on IResourceURL as well
1 files modified
2 ■■■■■ changed files
docs/narr/hooks.rst 2 ●●●●● patch | view | raw | blame | history
docs/narr/hooks.rst
@@ -750,7 +750,9 @@
          """ Accept the resource and request and set self.physical_path and
          self.virtual_path """
          self.virtual_path =  some_function_of(resource, request)
          self.virtual_path_tuple =  some_function_of(resource, request)
          self.physical_path =  some_other_function_of(resource, request)
          self.physical_path_tuple =  some_function_of(resource, request)
The default context URL generator is available for perusal as the class
:class:`pyramid.traversal.ResourceURL` in the `traversal module