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
bd5d46bb
Commit
bd5d46bb
authored
Mar 04, 2004
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed ZODB's setClassFactory method. Rather set the classFactory
attribute on databases.
parent
dc669148
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
lib/python/DBTab/ClassFactories.py
lib/python/DBTab/ClassFactories.py
+2
-2
lib/python/Products/ZODBMountPoint/MountedObject.py
lib/python/Products/ZODBMountPoint/MountedObject.py
+2
-2
lib/python/Zope/App/startup.py
lib/python/Zope/App/startup.py
+1
-1
lib/python/Zope/Startup/datatypes.py
lib/python/Zope/Startup/datatypes.py
+1
-1
No files found.
lib/python/DBTab/ClassFactories.py
View file @
bd5d46bb
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Available ZODB class factories.
$Id: ClassFactories.py,v 1.
1 2003/07/20 02:55:58 chris
m Exp $"""
$Id: ClassFactories.py,v 1.
2 2004/03/04 22:43:06 ji
m Exp $"""
import
OFS.Uninstalled
...
...
@@ -78,7 +78,7 @@ def autoClassFactory(jar, module, name):
root_conn
=
getattr
(
jar
,
'_root_connection'
,
None
)
root_db
=
getattr
(
root_conn
,
'_db'
,
None
)
if
root_db
is
not
None
:
return
root_db
.
_
classFactory
(
root_conn
,
module
,
name
)
return
root_db
.
classFactory
(
root_conn
,
module
,
name
)
else
:
return
zopeClassFactory
(
jar
,
module
,
name
)
...
...
lib/python/Products/ZODBMountPoint/MountedObject.py
View file @
bd5d46bb
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""DBTab mount point (stored in ZODB).
$Id: MountedObject.py,v 1.
3 2004/02/25 18:29:58 jeremy
Exp $
$Id: MountedObject.py,v 1.
4 2004/03/04 22:43:06 jim
Exp $
"""
import
os
...
...
@@ -98,7 +98,7 @@ class CustomTrailblazer (SimpleTrailblazer):
def
_construct
(
self
,
context
,
id
):
"""Creates and returns the named object."""
jar
=
self
.
base
.
_p_jar
klass
=
jar
.
db
().
_
classFactory
(
jar
,
self
.
module_name
,
self
.
class_name
)
klass
=
jar
.
db
().
classFactory
(
jar
,
self
.
module_name
,
self
.
class_name
)
obj
=
klass
(
id
)
obj
.
_setId
(
id
)
context
.
_setObject
(
id
,
obj
)
...
...
lib/python/Zope/App/startup.py
View file @
bd5d46bb
...
...
@@ -76,7 +76,7 @@ def startup():
Globals
.
opened
.
append
(
DB
)
import
ClassFactory
DB
.
setClassFactory
(
ClassFactory
.
ClassFactory
)
DB
.
classFactory
=
ClassFactory
.
ClassFactory
# "Log on" as system user
newSecurityManager
(
None
,
AccessControl
.
User
.
system
)
...
...
lib/python/Zope/Startup/datatypes.py
View file @
bd5d46bb
...
...
@@ -174,7 +174,7 @@ class ZopeDatabase(ZODBDatabase):
# set the connection class
DB
.
klass
=
self
.
config
.
connection_class
if
self
.
config
.
class_factory
is
not
None
:
DB
.
setClassFactory
(
self
.
config
.
class_factory
)
DB
.
classFactory
=
self
.
config
.
class_factory
from
ZODB.ActivityMonitor
import
ActivityMonitor
DB
.
setActivityMonitor
(
ActivityMonitor
())
return
DB
...
...
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