Code

Changes between Initial Version and Version 4 of Ticket #17135


Ignore:
Timestamp:
10/29/11 14:46:35 (2 years ago)
Author:
aaugustin
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.