[Zope-Checkins] CVS: Zope/lib/python/App - config.py:1.8
Chris McDonough
chrism at zopemafia.com
Sat Dec 20 11:53:43 EST 2003
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv28719
Modified Files:
config.py
Log Message:
Add a dummy dbtab attribute on the DefaultConfiguration for machinery that expects this attribute to exist.
=== Zope/lib/python/App/config.py 1.7 => 1.8 ===
--- Zope/lib/python/App/config.py:1.7 Fri Dec 19 23:46:14 2003
+++ Zope/lib/python/App/config.py Sat Dec 20 11:53:42 2003
@@ -43,7 +43,7 @@
if cfg is None:
return
-
+
from App import FindHomes
import __builtin__
__builtin__.CLIENT_HOME = FindHomes.CLIENT_HOME = cfg.clienthome
@@ -72,11 +72,15 @@
Globals.ZOPE_HOME = cfg.zopehome
class DefaultConfiguration:
+ """
+ This configuration should be used effectively only during unit tests
+ """
def __init__(self):
from App import FindHomes
self.clienthome = FindHomes.CLIENT_HOME
self.instancehome = FindHomes.INSTANCE_HOME
self.softwarehome = FindHomes.SOFTWARE_HOME
self.zopehome = FindHomes.ZOPE_HOME
+ self.dbtab = None
self.debug_mode = True
self.enable_product_installation = True
More information about the Zope-Checkins
mailing list