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
68b3ae5a
Commit
68b3ae5a
authored
Jan 16, 2006
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the cases where test.py is run without a configuration file.
parent
14dad585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/Zope2/App/startup.py
lib/python/Zope2/App/startup.py
+6
-3
No files found.
lib/python/Zope2/App/startup.py
View file @
68b3ae5a
...
...
@@ -62,12 +62,15 @@ def startup():
m
=
imp
.
load_module
(
'Zope2.custom_zodb'
,
m
[
0
],
m
[
1
],
m
[
2
])
sys
.
modules
[
'Zope2.custom_zodb'
]
=
m
# Get the database and join it to the dbtab multidatabase
# FIXME: this uses internal datastructures of dbtab
databases
=
getattr
(
dbtab
,
'databases'
,
{})
if
hasattr
(
m
,
'DB'
):
DB
=
m
.
DB
d
btab
.
d
atabases
.
update
(
getattr
(
DB
,
'databases'
,
{}))
DB
.
databases
=
d
btab
.
d
atabases
databases
.
update
(
getattr
(
DB
,
'databases'
,
{}))
DB
.
databases
=
databases
else
:
DB
=
ZODB
.
DB
(
m
.
Storage
,
databases
=
d
btab
.
d
atabases
)
DB
=
ZODB
.
DB
(
m
.
Storage
,
databases
=
databases
)
Globals
.
BobobaseName
=
DB
.
getName
()
...
...
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