##// END OF EJS Templates
templater: extract type conversion from evalfuncarg()...
Yuya Nishihara -
r37178:0023da29 default
parent child Browse files
Show More
@@ -287,7 +287,12 b' def evalrawexp(context, mapping, arg):'
287 287
288 288 def evalfuncarg(context, mapping, arg):
289 289 """Evaluate given argument as value type"""
290 thing = evalrawexp(context, mapping, arg)
290 return _unwrapvalue(evalrawexp(context, mapping, arg))
291
292 # TODO: unify this with unwrapvalue() once the bug of templatefunc.join()
293 # is fixed. we can't do that right now because join() has to take a generator
294 # of byte strings as it is, not a lazy byte string.
295 def _unwrapvalue(thing):
291 296 thing = unwrapvalue(thing)
292 297 # evalrawexp() may return string, generator of strings or arbitrary object
293 298 # such as date tuple, but filter does not want generator.
General Comments 0
You need to be logged in to leave comments. Login now