Package WebStack :: Package Resources :: Module ResourceMap :: Class MapResource
[show private | hide private]
[frames | no frames]

Class MapResource


A resource mapping names to other resources.
Method Summary
  __init__(self, mapping)
Initialise the resource with a 'mapping' of names to resources.
  respond(self, trans)
Using the path information from the given transaction 'trans', invoke mapped resources.
  send_error(self, trans)
Send the error using the given 'trans'.

Method Details

__init__(self, mapping)
(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 is found in the request path.

respond(self, trans)

Using the path information from the given transaction 'trans', invoke mapped resources. Otherwise return an error condition.

send_error(self, trans)

Send the error using the given 'trans'.

Generated by Epydoc 2.1 on Sun May 1 20:27:34 2005 http://epydoc.sf.net