__init__(self,
mapping,
directory_redirects=1)
(Constructor)
Initialise the resource with a 'mapping' of names to resources. The
'mapping' should be a dictionary-like object employing simple names
without "/" characters; the special value None is used where
no name corresponds to that used in the request path and may be used to
map to a "catch all" resource.
The optional 'directory_redirects' parameter, if set to a true value
(as is the default setting), causes a redirect adding a trailing
"/" character if the request path does not end with such a
character.
-
|