[Checkins] SVN: z3c.pt/trunk/ Added new `Z3C_PT_FILECACHE`
environment variable pointing to a directory. If set,
this will be used to cache the compiled files.
Hanno Schlichting
plone at hannosch.info
Sun Jul 6 05:57:39 EDT 2008
Log message for revision 88062:
Added new `Z3C_PT_FILECACHE` environment variable pointing to a directory. If set, this will be used to cache the compiled files.
Changed:
A z3c.pt/trunk/CONTRIBUTORS.txt
U z3c.pt/trunk/buildout.cfg
A z3c.pt/trunk/cache/
U z3c.pt/trunk/docs/HISTORY.txt
U z3c.pt/trunk/src/z3c/pt/config.py
-=-
Added: z3c.pt/trunk/CONTRIBUTORS.txt
===================================================================
--- z3c.pt/trunk/CONTRIBUTORS.txt (rev 0)
+++ z3c.pt/trunk/CONTRIBUTORS.txt 2008-07-06 09:57:39 UTC (rev 88062)
@@ -0,0 +1 @@
+Hanno Schlichting <hannosch at gmail.com>
Property changes on: z3c.pt/trunk/CONTRIBUTORS.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: z3c.pt/trunk/buildout.cfg
===================================================================
--- z3c.pt/trunk/buildout.cfg 2008-07-06 09:37:42 UTC (rev 88061)
+++ z3c.pt/trunk/buildout.cfg 2008-07-06 09:57:39 UTC (rev 88062)
@@ -5,11 +5,20 @@
[test]
recipe = zc.recipe.testrunner
+environment = test-environment
eggs =
z3c.pt
+[test-environment]
+Z3C_PT_DEBUG = False
+
[benchmark]
recipe = zc.recipe.testrunner
+environment = benchmark-environment
eggs =
z3c.pt
benchmark
+
+[benchmark-environment]
+Z3C_PT_DEBUG = False
+Z3C_PT_FILECACHE = ${buildout:directory}/cache
Property changes on: z3c.pt/trunk/cache
___________________________________________________________________
Name: svn:ignore
+ *
Modified: z3c.pt/trunk/docs/HISTORY.txt
===================================================================
--- z3c.pt/trunk/docs/HISTORY.txt 2008-07-06 09:37:42 UTC (rev 88061)
+++ z3c.pt/trunk/docs/HISTORY.txt 2008-07-06 09:57:39 UTC (rev 88062)
@@ -4,6 +4,9 @@
Version 0.8.x
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+- Added new `Z3C_PT_FILECACHE` environment variable pointing to a directory.
+ If set, this will be used to cache the compiled files.
+
- Added a second variation of the repeat clause, using a simple for loop. It
doesn't support the repeatdict, though and is therefor not used yet. Also
began work to add introspection facilities to clauses about the variables
Modified: z3c.pt/trunk/src/z3c/pt/config.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/config.py 2008-07-06 09:37:42 UTC (rev 88061)
+++ z3c.pt/trunk/src/z3c/pt/config.py 2008-07-06 09:57:39 UTC (rev 88062)
@@ -1,6 +1,11 @@
import os
+from os.path import abspath
DEBUG_MODE = os.environ.get('Z3C_PT_DEBUG', 'false')
DEBUG_MODE = DEBUG_MODE.lower() in ('yes', 'true', 'on')
PROD_MODE = not DEBUG_MODE
+
+FILECACHE = os.environ.get('Z3C_PT_FILECACHE', None)
+if FILECACHE is not None:
+ FILECACHE = abspath(FILECACHE)
More information about the Checkins
mailing list