Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
a0961903
Commit
a0961903
authored
Aug 03, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor (really, micro) changes that make MountPoint stop outputting needless
error messages.
parent
28ab567c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/ZODB/Mount.py
src/ZODB/Mount.py
+10
-10
No files found.
src/ZODB/Mount.py
View file @
a0961903
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Mounted database support
$Id: Mount.py,v 1.
4 2000/06/12 14:45:19
shane Exp $"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: Mount.py,v 1.
5 2000/08/03 19:56:35
shane Exp $"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Globals
,
thread
,
Persistence
,
Acquisition
import
ExtensionClass
,
string
,
time
,
sys
...
...
@@ -197,7 +197,7 @@ class MountPoint(Persistence.Persistent, Acquisition.Implicit):
return
"%s %s"
%
(
self
.
__class__
.
__name__
,
self
.
_path
)
def
_close
(
self
):
# The onCloseCallback
implementation
.
# The onCloseCallback
handler
.
# Closes a single connection to the database
# and possibly the database itself.
t
=
self
.
_v_data
...
...
@@ -207,9 +207,11 @@ class MountPoint(Persistence.Persistent, Acquisition.Implicit):
# This mount point has been deleted.
del
data
.
_v__object_deleted__
self
.
_v_close_db
=
1
if
data
is
not
None
:
conn
=
data
.
_p_jar
if
conn
is
not
None
:
try
:
del
conn
.
_mount_parent_jar
except
KeyError
:
pass
except
:
pass
conn
.
close
()
self
.
_v_data
=
None
if
self
.
_v_close_db
:
...
...
@@ -282,7 +284,7 @@ class MountPoint(Persistence.Persistent, Acquisition.Implicit):
except
:
self
.
_v_close_db
=
1
self
.
_logConnectException
()
# Wrap around self.
#
Broken database.
Wrap around self.
return
Acquisition
.
ImplicitAcquisitionWrapper
(
self
,
parent
)
else
:
data
=
t
[
0
]
...
...
@@ -327,5 +329,3 @@ class MountPoint(Persistence.Persistent, Acquisition.Implicit):
f
=
StringIO
()
traceback
.
print_tb
(
exc
[
2
],
100
,
f
)
self
.
_v_connect_error
=
(
exc
[
0
],
exc
[
1
],
f
.
getvalue
())
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