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
ceda2236
Commit
ceda2236
authored
Dec 02, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now you can define the ZODB in custom_zodb, not just the storage.
parent
f2fff8bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/python/Zope/__init__.py
lib/python/Zope/__init__.py
+7
-2
No files found.
lib/python/Zope/__init__.py
View file @
ceda2236
...
...
@@ -107,13 +107,18 @@ try:
except
:
import
ZODB.FileStorage
DB
=
ZODB
.
FileStorage
.
FileStorage
(
Globals
.
BobobaseName
)
DB
=
ZODB
.
DB
(
DB
)
else
:
m
=
imp
.
load_module
(
'Zope.custom_zodb'
,
m
[
0
],
m
[
1
],
m
[
2
])
DB
=
m
.
Storage
if
hasattr
(
m
,
'DB'
):
DB
=
m
.
DB
else
:
DB
=
m
.
Storage
DB
=
ZODB
.
DB
(
DB
)
Globals
.
BobobaseName
=
DB
.
getName
()
sys
.
modules
[
'Zope.custom_zodb'
]
=
m
DB
=
ZODB
.
DB
(
DB
)
Globals
.
DB
=
DB
# Ick, this is temporary until we come up with some registry
# Hook for providing multiple transaction object manager undo support:
...
...
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