Changes between Initial Version and Version 2 of Ticket #5971
- Timestamp:
- Nov 17, 2007, 9:40:52 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5971
- Property Triage Stage Unreviewed → Accepted
-
Ticket #5971 – Description
initial v2 3 3 4 4 Meaning that: 5 {% tag thevar|filter sometag %} will produce: 5 {{{ 6 #!python 7 {% tag thevar|filter sometag %} 8 }}} 9 will produce: 10 {{{ 11 #!python 6 12 self.value() = "thevar|filter" 7 13 self.tag() = "sometag" 14 }}} 8 15 9 16 However: 10 {% tag "a value"|filter sometag %} will produce: 17 {{{ 18 #!python 19 {% tag "a value"|filter sometag %} 20 }}} 21 will produce: 22 {{{ 23 #!python 11 24 self.value() = "a value" 12 25 self.tag() = "|filter" 13 26 self.tag() = "sometag" 14 27 }}} 15 28 This does not seem like correct behaviour... 16 29 I made a very simple patch for this, thus the outcome of the above: 17 30 18 {% tag "a value"|filter sometag %} will produce: 31 {{{ 32 #!python 33 {% tag "a value"|filter sometag %} 34 }}} 35 will produce: 36 {{{ 37 #!python 19 38 value = "a value"|filter 20 39 tag = sometag 40 }}} 21 41 22 So now we can simply pass the "value" into a FilterExpression to parse 23 the filters... 42 So now we can simply pass the "value" into a !FilterExpression to parse the filters... 24 43 25 44 PS: I had trouble naming an internal method, feel free to complain about the name ;)