251
251
.. class:: SafeExceptionReporterFilter
253
.. method:: SafeExceptionReporterFilter.is_active(self, request)
253
.. method:: SafeExceptionReporterFilter.is_active(request)
255
255
Returns ``True`` to activate the filtering operated in the other methods.
256
256
By default the filter is active if :setting:`DEBUG` is ``False``.
258
.. method:: SafeExceptionReporterFilter.get_request_repr(self, request)
258
.. method:: SafeExceptionReporterFilter.get_request_repr(request)
260
260
Returns the representation string of the request object, that is, the
261
261
value that would be returned by ``repr(request)``, except it uses the
262
262
filtered dictionary of POST parameters as determined by
263
263
:meth:`SafeExceptionReporterFilter.get_post_parameters`.
265
.. method:: SafeExceptionReporterFilter.get_post_parameters(self, request)
265
.. method:: SafeExceptionReporterFilter.get_post_parameters(request)
267
267
Returns the filtered dictionary of POST parameters. By default it replaces
268
268
the values of sensitive parameters with stars (`**********`).
270
.. method:: SafeExceptionReporterFilter.get_traceback_frame_variables(self, request, tb_frame)
270
.. method:: SafeExceptionReporterFilter.get_traceback_frame_variables(request, tb_frame)
272
272
Returns the filtered dictionary of local variables for the given traceback
273
273
frame. By default it replaces the values of sensitive variables with stars