Latest Version: 0.9.6.2

Warning

This documentation does not refer to the most recent version of Pylons. Current Documentation

myghtyroutes

Myghty Routes Resolver and ComponentSource classes for controllers

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.


Classes

C RoutesComponentSource(...) ...

Holds a reference to the controller source file

If the source file is updated, the module will be reloaded

This class contains 3 members.

C RoutesComponent(...) ...

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.

C RoutesResolver(...) ...

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.

Top