Python Paste


dispatch


Functions

f public(func) ...

Classes

C ActionDispatch(...) ...

This dispatches to a method based on a URL variable (GET or POST -- remember that you can also include GET variables in your form's action even if the form is being POSTed).

The URL variable indicates a method to run; if no variable is found then default_action is assumed (if you pass in a default action).

The URL variable is given with action_name and defaults to '_action_'. You can pass in the action either as _action_=method_name or _action_method_name=anything (useful with submit buttons, where the value is part of the UI).

This class contains 7 members.

C PathDispatch(...) ...

This dispatches to a method based on the PATH_INFO. Thus /path/to/servlet/meth will call the meth method.

@@: This should probably adjust SCRIPT_NAME and PATH_INFO @@: Should these all use the same prefix?

This class contains 7 members.

See the source for more information.