Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
e412c7c8
Commit
e412c7c8
authored
May 23, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly get ZClasses from the parent of a mounted connection.
parent
30ab0b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/Mount.py
src/ZODB/Mount.py
+5
-5
No files found.
src/ZODB/Mount.py
View file @
e412c7c8
...
...
@@ -13,8 +13,8 @@
##############################################################################
"""Mounted database support
$Id: Mount.py,v 1.1
4 2002/02/11 23:40:42 gvanrossum
Exp $"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
$Id: Mount.py,v 1.1
5 2002/05/23 20:53:22 shane
Exp $"""
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
thread
,
Persistence
,
Acquisition
import
ExtensionClass
,
string
,
time
,
sys
...
...
@@ -32,15 +32,15 @@ dblock=thread.allocate_lock()
def
parentClassFactory
(
jar
,
module
,
name
):
# Use the class factory from the parent database.
parent_
db
=
getattr
(
getattr
(
jar
,
'_mount_parent_jar'
,
None
),
'_db'
,
None
)
parent_
conn
=
getattr
(
jar
,
'_mount_parent_jar'
,
None
)
parent_db
=
getattr
(
parent_conn
,
'_db'
,
None
)
if
parent_db
is
None
:
_globals
=
{}
_silly
=
(
'__doc__'
,)
return
getattr
(
__import__
(
module
,
_globals
,
_globals
,
_silly
),
name
)
else
:
return
parent_db
.
_classFactory
(
jar
,
module
,
name
)
return
parent_db
.
_classFactory
(
parent_conn
,
module
,
name
)
class
MountPoint
(
Persistence
.
Persistent
,
Acquisition
.
Implicit
):
...
...
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