Changes between Version 1 and Version 2 of Ticket #911


Ignore:
Timestamp:
Nov 26, 2005, 8:58:31 AM (19 years ago)
Author:
rjwittams
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #911 – Description

    v1 v2  
    1717{{{
    1818register.tag('name', func)
    19 register.filter('name', func, False)
     19register.filter('name', func) # No has_arg, see below
    2020}}}
    2121In tags, resolve_variable_with_filters is gone.
     
    4343}}}
    4444for those.
     45 
     46Filters can now have default arguments, and whether they have an argument is inferred from the signature. So any
    4547
    46 Will upload patch after updating to take account of new-admin merge.
     48{{{
     49def filter_func(obj, _):
     50}}}
     51
     52should be changed to
     53
     54{{{
     55def filter_func(obj):
     56}}}
     57
     58and the has_arg function is no longer accepted or useful.
     59Filter arguments can be also now be variables which are resolved in the context as well as constant strings.
Back to Top