Author: ArcRiley Date: 2008-09-28 17:59:49 -0400 (Sun, 28 Sep 2008) New Revision: 1368
Modified: trunk/pysoy/docs/__init__.py Log: Ticket #964 : * one line newest_template_mtime function by zalassi * now regenerates html when templates have changed Modified: trunk/pysoy/docs/__init__.py =================================================================== --- trunk/pysoy/docs/__init__.py 2008-09-28 20:25:21 UTC (rev 1367) +++ trunk/pysoy/docs/__init__.py 2008-09-28 21:59:49 UTC (rev 1368) @@ -20,7 +20,7 @@ 'by '+'$Author$'[9:-2] __version__ = 'Trunk (r'+'$Rev$'[6:-2]+')' -import os +import os, glob import sphinx.application import genshi.template @@ -35,7 +35,7 @@ def newest_template_mtime(self) : - return 0 + return max([os.path.getmtime(x) for x in glob.glob('templates/*')]) def render(self, template, context) : _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn