<div dir="ltr"><div>Could you possibly extend renderer to handle that case?<br><br></div>Dustin<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 2, 2015 at 4:17 PM, Роман Донченко <span dir="ltr"><<a href="mailto:dpb@corrigendum.ru" target="_blank">dpb@corrigendum.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pierre Tardy <<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>> писал в своём письме Fri, 02 Oct 2015 00:25:36 +0300:<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Roman,<br>
<br>
There is already a renderer function which is similar simplification of the<br>
renderable pattern.<br>
You can do<br>
<br>
renderer(lambda _: datetime.date.today().isoformat()<br>
renderer(lambda b: os.path.relpath(p.getProperty('buildir'))<br>
<br>
The latter is a little bit more chars than your solution, but probably more<br>
easy to follow.<br>
</blockquote>
<br></span>
I know this, but it doesn't work when the arguments are arbitrary renderables (since you have to account for the possibility that they return a Deferred). The brevity is nice to have, too.<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@buildbot.net" target="_blank">devel@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/devel</a></div></div></blockquote></div><br></div>