equal
deleted
inserted
replaced
210 if n in context._filters: |
210 if n in context._filters: |
211 if len(args) != 1: |
211 if len(args) != 1: |
212 raise error.ParseError(_("filter %s expects one argument") % n) |
212 raise error.ParseError(_("filter %s expects one argument") % n) |
213 f = context._filters[n] |
213 f = context._filters[n] |
214 return (runfilter, (args[0][0], args[0][1], f)) |
214 return (runfilter, (args[0][0], args[0][1], f)) |
|
215 raise error.ParseError(_("unknown function '%s'") % n) |
215 |
216 |
216 def date(context, mapping, args): |
217 def date(context, mapping, args): |
217 if not (1 <= len(args) <= 2): |
218 if not (1 <= len(args) <= 2): |
218 raise error.ParseError(_("date expects one or two arguments")) |
219 raise error.ParseError(_("date expects one or two arguments")) |
219 |
220 |