Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
6298e38d
Commit
6298e38d
authored
Mar 22, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1260: Testing/__init__.py no longer changes the INSTANCE_HOME.
parent
b576454b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Testing/__init__.py
lib/python/Testing/__init__.py
+3
-3
lib/python/Zope/App/startup.py
lib/python/Zope/App/startup.py
+4
-1
No files found.
doc/CHANGES.txt
View file @
6298e38d
...
...
@@ -102,6 +102,9 @@ Zope Changes
(such as storages, databases, or logging handlers) to be used.
Bugs fixed
- Collector #1260: Testing/__init__.py no longer changes the
INSTANCE_HOME.
- App.config.setConfiguration() did not update the legacy source
for debug_mode, Globals.DevelopmentMode.
...
...
lib/python/Testing/__init__.py
View file @
6298e38d
...
...
@@ -13,7 +13,7 @@
"""
Set up testing environment
$Id: __init__.py,v 1.
8 2003/02/11 17:17:08 fdrake
Exp $
$Id: __init__.py,v 1.
9 2004/03/22 16:25:02 shh
Exp $
"""
import
os
...
...
@@ -21,8 +21,8 @@ import App.config
cfg
=
App
.
config
.
getConfiguration
()
# Set t
he INSTANCE_HOME
to the Testing package directory
cfg
.
instance
home
=
os
.
path
.
dirname
(
__file__
)
# Set t
estinghome
to the Testing package directory
cfg
.
testing
home
=
os
.
path
.
dirname
(
__file__
)
# Make sure this change is propogated to all the legacy locations for
# this information.
...
...
lib/python/Zope/App/startup.py
View file @
6298e38d
...
...
@@ -47,7 +47,10 @@ def startup():
# Open the database
try
:
# Try to use custom storage
m
=
imp
.
find_module
(
'custom_zodb'
,[
getConfiguration
().
instancehome
])
try
:
m
=
imp
.
find_module
(
'custom_zodb'
,[
getConfiguration
().
testinghome
])
except
:
m
=
imp
.
find_module
(
'custom_zodb'
,[
getConfiguration
().
instancehome
])
except
:
# if there is no custom_zodb, use the config file specified databases
configuration
=
getConfiguration
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment