Signals

philo.signals.entity_class_prepared

Sent whenever an Entity subclass has been “prepared” – that is, after the processing necessary to make AttributeProxyFields work has been completed. This will fire after django.db.models.signals.class_prepared.

Arguments that are sent with this signal:

sender
The model class.
philo.signals.view_about_to_render

Sent when a View instance is about to render. This allows you, for example, to modify the extra_context dictionary used in rendering.

Arguments that are sent with this signal:

sender
The View instance
request
The HttpRequest instance which the View is rendering in response to.
extra_context
A dictionary which will be passed into actually_render_to_response().
philo.signals.view_finished_rendering

Sent when a view instance has finished rendering.

Arguments that are sent with this signal:

sender
The View instance
response
The HttpResponse instance which View view has rendered to.
philo.signals.page_about_to_render_to_string

Sent when a Page instance is about to render as a string. If the Page is rendering as a response, this signal is sent after view_about_to_render and serves a similar function. However, there are situations where a Page may be rendered as a string without being rendered as a response afterwards.

Arguments that are sent with this signal:

sender
The Page instance
request
The HttpRequest instance which the Page is rendering in response to (if any).
extra_context
A dictionary which will be passed into the Template context.
philo.signals.page_finished_rendering_to_string

Sent when a Page instance has just finished rendering as a string. If the Page is rendering as a response, this signal is sent before view_finished_rendering and serves a similar function. However, there are situations where a Page may be rendered as a string without being rendered as a response afterwards.

Arguments that are sent with this signal:

sender
The Page instance
string
The string which the Page has rendered to.

Project Versions

Previous topic

Handling Requests

Next topic

Validators

This Page