[Checkins] SVN: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/__init__.py Use module level variables for controlling the devmode (default=False) and hashing (default=True) as we believe they will not be changed during the runtime of the application.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Nov 19 05:14:06 EST 2010


Log message for revision 118474:
  Use module level variables for controlling the devmode (default=False) and hashing (default=True) as we believe they will not be changed during the runtime of the application.

Changed:
  U   hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/__init__.py

-=-
Modified: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/__init__.py
===================================================================
--- hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/__init__.py	2010-11-19 01:21:30 UTC (rev 118473)
+++ hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/__init__.py	2010-11-19 10:14:05 UTC (rev 118474)
@@ -14,3 +14,15 @@
 
 from hurry.resource.core import (register_plugin,
                                  get_current_needed_inclusions)
+
+hashing = True
+
+def configure_hashing(enable=True):
+    global hashing
+    hashing = enable
+
+devmode = False
+
+def configure_devmode(enable=True):
+    global devmode
+    devmode = enable



More information about the checkins mailing list