routing.predicates

Routing predicate definitions.

class pyramid_fullauth.routing.predicates.CSRFCheckPredicate(val, config)[source]

Bases: pyramid.config.predicates.CheckCSRFTokenPredicate

Run csrf check dependant on configuration.

Note

Raises HTTPUnauthorized exception if check fails.

Raises:pyramid.httpexceptions.HTTPUnauthorized
Returns:True if check succeeds or turned off.
Return type:bool
pyramid_fullauth.routing.predicates.change_email_hash(info, request)[source]

Check whether change email hash is correct.

Parameters:
Returns:

whether change email hash exists or not

Return type:

bool

pyramid_fullauth.routing.predicates.reset_hash(info, request)[source]

Check whether reset hash is correct.

Parameters:
Returns:

whether reset hash exists or not

Return type:

bool

Previous topic

exceptions

Next topic

request

This Page