Code

Changes between Initial Version and Version 2 of Ticket #5971


Ignore:
Timestamp:
11/17/07 19:40:52 (6 years ago)
Author:
mtredinnick
Comment:

Fixed description formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5971

    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #5971 – Description

    initial v2  
    33 
    44Meaning that: 
    5 {% tag thevar|filter sometag %} will produce: 
     5{{{ 
     6#!python 
     7{% tag thevar|filter sometag %} 
     8}}} 
     9will produce: 
     10{{{ 
     11#!python 
    612self.value() = "thevar|filter" 
    713self.tag() = "sometag" 
     14}}} 
    815 
    916However: 
    10 {% tag "a value"|filter sometag %} will produce: 
     17{{{ 
     18#!python 
     19{% tag "a value"|filter sometag %} 
     20}}} 
     21will produce: 
     22{{{ 
     23#!python 
    1124self.value() = "a value" 
    1225self.tag() = "|filter" 
    1326self.tag() = "sometag" 
    14  
     27}}} 
    1528This does not seem like correct behaviour... 
    1629I made a very simple patch for this, thus the outcome of the above: 
    1730 
    18 {% tag "a value"|filter sometag %} will produce: 
     31{{{ 
     32#!python 
     33{% tag "a value"|filter sometag %} 
     34}}} 
     35will produce: 
     36{{{ 
     37#!python 
    1938value = "a value"|filter 
    2039tag = sometag 
     40}}} 
    2141 
    22 So now we can simply pass the "value" into a FilterExpression to parse 
    23 the filters... 
     42So now we can simply pass the "value" into a !FilterExpression to parse the filters... 
    2443 
    2544PS: I had trouble naming an internal method, feel free to complain about the name ;)