Warning
This documentation does not refer to the most recent version of Pylons. Current Documentation
The myghtyroutes module is accessible via the pylons module.
MyghtyRoutes implements Routes-based dispatching and controller setup using subclasses of Myghty ModuleComponentSource with a custom resolver called RoutesResolver.
The custom Myghty Routes Resolver is used with Myghty's Advanced Resolver Configuration and is setup in pylons.config.
The ComponentSource and RoutesComponentSource classes are used to setup the controller and environment thread-locals for every request. They also ensure that the controller is reloaded if the file has been updated.
Holds a reference to the controller source file
If the source file is updated, the module will be reloaded
This class contains 3 members.
Makes the Controller act like a ModuleComponent
The RoutesComponent holds a reference to the Controller object, and instantiates/calls it during the request cycle. The environ dict is also setup here.
This class contains 12 members.
A Myghty ResolverRule Subclass that implements Routes-base dispatching
RoutesResolver subclasses ResolverRule and is used to implement Routes-based dispatching. The RoutesResolver currently is heavily bound to the Pylons run-time environment and is not usable outside of Pylons.
This class contains 4 members.
See the source for more information.