Views

apex.views.activate(request)[source]
apex.views.apex_callback(request)[source]

apex_callback(request): no return value, called with route_url(‘apex_callback’, request)

This is the URL that Velruse returns an OpenID request to

apex.views.change_password(request)[source]

change_password(request): no return value, called with route_url(‘apex_change_password’, request) FIXME doesn’t adjust auth_user based on local ID, how do we handle multiple

IDs that are local? Do we tell person that they don’t have local permissions?
apex.views.edit(request)[source]

no return value, called with route_url(‘apex_edit’, request)

This function will only work if you have set apex.auth_profile.

This is a very simple edit function it works off your auth_profile class, all columns inside your auth_profile class will be rendered.

apex.views.forbidden(request)[source]

No return value

Called when user hits a resource that requires a permission and the user doesn’t have the required permission. Will prompt for login.

request.environ[‘repoze.bfg.message’] contains our forbidden error in case of a csrf problem. Proper solution is probably an error page that can be customized.

bfg.routes.route and repoze.bfg.message are scheduled to be deprecated, however, corresponding objects are not present in the request to be able to determine why the Forbidden exception was called.

THIS WILL BREAK EVENTUALLY THIS DID BREAK WITH Pyramid 1.2a3

apex.views.forgot_password(request)[source]

forgot_password(request): no return value, called with route_url(‘apex_forgot_password’, request)

apex.views.login(request)[source]

No return value

Function called from route_url(‘apex_login’, request)

apex.views.logout(request)[source]

logout(request): no return value, called with route_url(‘apex_logout’, request)

apex.views.openid_required(request)[source]

no return value

If apex_settings.openid_required is set, and the ax/sx from the OpenID auth doesn’t return the required fields, this is called which builds a dynamic form to ask for the missing inforation.

Called on Registration or Login with OpenID Authentication.

apex.views.register(request)[source]

register(request): no return value, called with route_url(‘apex_register’, request)

apex.views.reset_password(request)[source]

reset_password(request): no return value, called with route_url(‘apex_reset_password’, request)

Previous topic

Interfaces

Next topic

Extensions

This Page