pyroxide.util.transmogrifier (version 51 , 2007-04-08 16:03:35 -0700 (Sun, 08 Apr 2007) )
index
/usr/lib/python2.4/site-packages/pyroxide/util/transmogrifier.py

The default transmogrifier module.
 
This module provides the default utility for transforming an HTTP request into
a controller call.

 
Functions
       
mapPath(httpRequest)
Map the path to a callable based on the mappings in configuration.
 
URLs are mapped to callables in the configuration file as follows:
    
    [URLS]
    /myapp/picture = myapp.control.picture.pictureController
transmogrifyPath(httpRequest)
Transform a path request into a callable.
 
This function is very straight forward.  It will take the first path element
and maps it to a controller module.  A path ending in '/' maps to the index
controller module.
 
To create more complex transformations you can create a dictionary that 
specifically maps urls to callables, regular expression matching to allow
you to transform path elements into arguments, or a combination of the two.
 
To create your own plugin, simply copy this module into your own path and 
add it as a plugin in the configuration.

 
Data
        __HeadURL__ = '$URL: http://pyroxide.org/svn/pyroxide/trunk/src/main/python/pyroxide/util/transmogrifier.py $'
__Id__ = '$Id: transmogrifier.py 51 2007-04-08 23:03:35Z kevin $'
__LastChangedBy__ = '$Author: kevin $'
__LastChangedDate__ = '$Date: 2007-04-08 16:03:35 -0700 (Sun, 08 Apr 2007) $'
__Revision__ = '$Rev: 51 $'
__copyright__ = '(c) 2006 rootsmith Inc.'
__date__ = ' 2007-04-08 16:03:35 -0700 (Sun, 08 Apr 2007) '
__version__ = ' 51 '