Package WebStack :: Package Resources :: Module Selectors :: Class PathSelector
[show private | hide private]
[frames | no frames]

Class PathSelector


Set a request's current path and processed path info on an attribute.

Method Summary
  __init__(self, resource, add_slash, attribute_name, path_encoding)
Initialise the selector with a 'resource' (to which all requests shall be forwarded), specifying whether a "/" character shall be added to stored paths using the optional 'add_slash' parameter (default is true), along with an optional 'attribute_name' (indicating the name of the attribute on which the path information shall be stored), and the optional 'path_encoding' for interpreting URL-encoded path values.
  respond(self, trans)
Respond to the transaction 'trans' by storing the current path and processed virtual path info on the named transaction attribute, then forwarding the transaction to the previously specified resource.
  _slash(self)

Method Details

__init__(self, resource, add_slash=1, attribute_name='root', path_encoding='utf-8')
(Constructor)

Initialise the selector with a 'resource' (to which all requests shall
be forwarded), specifying whether a "/" character shall be added to
stored paths using the optional 'add_slash' parameter (default is true),
along with an optional 'attribute_name' (indicating the name of the
attribute on which the path information shall be stored), and the
optional 'path_encoding' for interpreting URL-encoded path values.

respond(self, trans)

Respond to the transaction 'trans' by storing the current path and
processed virtual path info on the named transaction attribute, then
forwarding the transaction to the previously specified resource.

Generated by Epydoc 2.1 on Thu Mar 1 00:37:14 2007 http://epydoc.sf.net