class documentation

class Mapper(object):

View In Hierarchy

Map resource to method.

Method __init__ Resource mapper constructor.
Method getController Find method for a given URI.
Instance Variable _connector Undocumented
def __init__(self, connector=None):

Resource mapper constructor.

Parameters
connectora dictionary, mapping method name with URL path regexp
def getController(self, uri):

Find method for a given URI.

Parameters
uristring with URI
Returns

None if no method is found or a tuple containing the following fields:

  • method: name of method mapped to URI
  • items: a list of variable intems in the path
  • args: a dictionary with additional parameters from URL
_connector =

Undocumented