Python Paste


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).


Attributes

a prefix

'action_'

Methods

f __addtoclass__(self, attr, cls) ...

f respond_event(self, name, servlet, *args, **kw) ...

f get_method(self, servlet, action) ...

f valid_method(self, name, method) ...

f __init__(self, action_name='_action_', default_action=None) ...

f find_method(self, servlet, ret_value, **kw) ...

See the source for more information.