Changes between Initial Version and Version 4 of Ticket #17135


Ignore:
Timestamp:
Oct 29, 2011, 4:46:35 PM (13 years ago)
Author:
Aymeric Augustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17135 – Description

    initial v4  
    1111The problem is that the `stringfilter` decorator keeps a pointer to the underlying function, and the template engine uses it.
    1212
    13 However, the last line only sets `is_safe` on the function returned by the decorator, not on the underlying function. As a consequence, the template filter doesn't know that the filter is safe.
     13However, the last line only sets `is_safe` on the function returned by the decorator, not on the underlying function. As a consequence, the template engine doesn't know that the filter is safe.
Back to Top