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
90e30f6b
Commit
90e30f6b
authored
Aug 02, 2003
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made it possible to use a different DB class by extending ZopeDatabase.
Also set the connection class only when specified.
parent
9c4eb269
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lib/python/Zope/Startup/datatypes.py
lib/python/Zope/Startup/datatypes.py
+8
-3
No files found.
lib/python/Zope/Startup/datatypes.py
View file @
90e30f6b
...
...
@@ -158,10 +158,15 @@ class ZopeDatabase(ZODBDatabase):
container_class
=
'OFS.Folder.Folder'
def
createDB
(
self
):
return
ZODBDatabase
.
open
(
self
)
def
open
(
self
):
DB
=
ZODBDatabase
.
open
(
self
)
DB
=
self
.
createDB
()
if
self
.
config
.
connection_class
:
# set the connection class
DB
.
klass
=
self
.
config
.
connection_class
print
DB
,
DB
.
klass
if
self
.
config
.
class_factory
is
not
None
:
DB
.
setClassFactory
(
self
.
config
.
class_factory
)
from
ZODB.ActivityMonitor
import
ActivityMonitor
...
...
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