<br><div class="gmail_quote"><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
</div>Sure, you can save the filename and it&#39;s file modification time as<br>
attributes in setFromFilename, and then for each render see if the<br>
file modification time has changed, and in that case reload.<br>
<br>
ZPT does this automatically in debug mode, I guess Jinja2 does not.<br>
<font color="#888888"></font></blockquote></div><div><br>Great, it&#39;s working<br><br>but I couldn&#39;t find a way to see if zope it&#39;s running in debug mode (./bin/zopectl fg) or not (./bin/zope start)<br><br>I was checking the pagetemplatefile.py in zope.pagetemplate, and it use a global __debug__ variable. I tried to use it, but it&#39;s always True.<br>

<br>any idea??<br><br>cheers<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
<br>
--<div class="Ih2E3d"><br>
Lennart Regebro: Zope and Plone consulting.<br>
<a href="http://www.colliberty.com/" target="_blank">http://www.colliberty.com/</a><br>
+33 661 58 14 64<br>
</div></font></blockquote></div><br><br clear="all"><div><div></div><div class="Wj3C7c"><br>-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar" target="_blank">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela" target="_blank">http://www.linkedin.com/in/svidela</a><br>

<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>
</div></div></div><br><br clear="all"><br>-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela">http://www.linkedin.com/in/svidela</a><br>
<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>