[Checkins] SVN: megrok.jinja/trunk/ Fix for 0.1 release

Santiago Videla santiago.videla at gmail.com
Sun May 3 13:50:17 EDT 2009


Log message for revision 99684:
  Fix for 0.1 release
  
  

Changed:
  U   megrok.jinja/trunk/CHANGES.txt
  U   megrok.jinja/trunk/setup.py
  U   megrok.jinja/trunk/src/megrok/jinja/factory.py

-=-
Modified: megrok.jinja/trunk/CHANGES.txt
===================================================================
--- megrok.jinja/trunk/CHANGES.txt	2009-05-03 17:02:14 UTC (rev 99683)
+++ megrok.jinja/trunk/CHANGES.txt	2009-05-03 17:50:16 UTC (rev 99684)
@@ -1,6 +1,12 @@
 Changelog
 =========
 
+0.2 (2009-05-03)
+----------------
+
+* Fix 0.1 release version
+* Use auto_reload=True in the Jinja2 environment
+
 0.1 (2009-05-02)
 ----------------
 

Modified: megrok.jinja/trunk/setup.py
===================================================================
--- megrok.jinja/trunk/setup.py	2009-05-03 17:02:14 UTC (rev 99683)
+++ megrok.jinja/trunk/setup.py	2009-05-03 17:50:16 UTC (rev 99684)
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 import os
 
-version = '0.1dev'
+version = '0.2dev'
 
 long_description = (open('README.txt').read() +
                     '\n\n' +

Modified: megrok.jinja/trunk/src/megrok/jinja/factory.py
===================================================================
--- megrok.jinja/trunk/src/megrok/jinja/factory.py	2009-05-03 17:02:14 UTC (rev 99683)
+++ megrok.jinja/trunk/src/megrok/jinja/factory.py	2009-05-03 17:50:16 UTC (rev 99684)
@@ -28,9 +28,10 @@
 # absolute path templates.
 
 #XXX passing in a None value here is a hack.
-in_dev_mode = RuntimeInfo(None).getDeveloperMode() == 'On'
+#in_dev_mode = RuntimeInfo(None).getDeveloperMode() == 'On'
+# Didn't work as expected. We use auto_reload=True by now.
 env = Environment(extensions=['jinja2.ext.i18n'],
-                  loader=FileSystemLoader('/'), auto_reload=in_dev_mode)
+                  loader=FileSystemLoader('/'))
 
 #Just set the functions used to resolve translations and
 #contents providers instead of full Extension classes



More information about the Checkins mailing list