module documentation
Undocumented
Interface |
|
Marker interface for parsed fields. |
Interface |
|
Marker interface for form attached to dependency injection components. |
Interface |
|
Marker interface for the dict parsed from the request body's JSON contents. |
Interface |
|
Marker interface for ProtoForm . |
Interface |
|
Validation failure handler callable interface. |
Class |
|
Cross site request forgery detected. Request aborted. |
Class |
|
Field injector. |
Class |
|
Form-builder. |
Class |
|
A RenderableFormParam implements IRequiredParameter and IDependencyInjector to provide a RenderableForm to your route. |
Function | check |
Check the request for cross-site request forgery, raising an EarlyExit if it is found. |
Function | default |
This is the default validation failure handler, which will be used by form handlers (i.e. any routes which use klein.Requirer to require a field) in the case of any input validation failure when no other validation failure handler is registered via ... |
Function | text |
Converter for form values (which may be any type of string) into text. |
Constant | CSRF |
Undocumented |
Check the request for cross-site request forgery, raising an EarlyExit if it is found.
Parameters | |
request:IRequest | Undocumented |
This is the default validation failure handler, which will be used by form handlers (i.e. any routes which use klein.Requirer
to require a field) in the case of any input validation failure when no other validation failure handler is registered via Form.onValidationFailureFor
.
Its behavior is to simply return an HTML rendering of the form object, which includes inline information about fields which failed to validate.
Parameters | |
instance:Optional[ | The instance associated with the router that the form handler was handled on. |
request:IRequest | The request including the form submission. |
fieldFieldValues | Undocumented |
Returns | |
Element | Any object acceptable from a Klein route. |