##// END OF EJS Templates
keyword: add extra datefilters in a single update call
Christian Ebert -
r11616:fda0e478 default
parent child Browse files
Show More
@@ -159,9 +159,9 b' class kwtemplater(object):'
159 kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped)
159 kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped)
160 self.re_kw = re.compile(kwpat)
160 self.re_kw = re.compile(kwpat)
161
161
162 templatefilters.filters['utcdate'] = utcdate
162 templatefilters.filters.update({'utcdate': utcdate,
163 templatefilters.filters['svnisodate'] = svnisodate
163 'svnisodate': svnisodate,
164 templatefilters.filters['svnutcdate'] = svnutcdate
164 'svnutcdate': svnutcdate})
165
165
166 def substitute(self, data, path, ctx, subfunc):
166 def substitute(self, data, path, ctx, subfunc):
167 '''Replaces keywords in data with expanded template.'''
167 '''Replaces keywords in data with expanded template.'''
General Comments 0
You need to be logged in to leave comments. Login now