[z3-checkins] r20008 - z3/Five/branch/Five-1.3
efge at codespeak.net
efge at codespeak.net
Fri Nov 18 14:08:36 CET 2005
Author: efge
Date: Fri Nov 18 14:08:36 2005
New Revision: 20008
Modified:
z3/Five/branch/Five-1.3/zcml.py
Log:
Merge from 1.2 branch: allow loading config without executing.
Modified: z3/Five/branch/Five-1.3/zcml.py
==============================================================================
--- z3/Five/branch/Five-1.3/zcml.py (original)
+++ z3/Five/branch/Five-1.3/zcml.py Fri Nov 18 14:08:36 2005
@@ -41,13 +41,13 @@
_context = xmlconfig.file(file)
-def load_config(file, package=None):
+def load_config(file, package=None, execute=True):
"""Load an additional ZCML file into the context.
Use with extreme care.
"""
global _context
- _context = xmlconfig.file(file, package, _context)
+ _context = xmlconfig.file(file, package, _context, execute=execute)
def load_string(s):
"""Load a snipped of ZCML into the context.
More information about the z3-checkins
mailing list