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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
b0b6fd8d
Commit
b0b6fd8d
authored
Mar 04, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add isReadOnly() method to Connection.
parent
8fbf35ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/ZODB/Connection.py
src/ZODB/Connection.py
+6
-1
No files found.
src/ZODB/Connection.py
View file @
b0b6fd8d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.8
6 2003/02/06 20:32:18 shane
Exp $"""
$Id: Connection.py,v 1.8
7 2003/03/04 21:00:23 jeremy
Exp $"""
from
cPickleCache
import
PickleCache
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ReadConflictError
from
POSException
import
ConflictError
,
ReadConflictError
...
@@ -91,6 +91,8 @@ class Connection(ExportImport.ExportImport):
...
@@ -91,6 +91,8 @@ class Connection(ExportImport.ExportImport):
def
setLocalTransaction
(
self
):
def
setLocalTransaction
(
self
):
"""Use a transaction bound to the connection rather than the thread"""
"""Use a transaction bound to the connection rather than the thread"""
if
self
.
_transaction
is
None
:
if
self
.
_transaction
is
None
:
# XXX The connection may already be registered with a
# transaction. I guess we should abort that transaction.
self
.
_transaction
=
Transaction
()
self
.
_transaction
=
Transaction
()
return
self
.
_transaction
return
self
.
_transaction
...
@@ -474,6 +476,9 @@ class Connection(ExportImport.ExportImport):
...
@@ -474,6 +476,9 @@ class Connection(ExportImport.ExportImport):
def
getVersion
(
self
):
return
self
.
_version
def
getVersion
(
self
):
return
self
.
_version
def
isReadOnly
(
self
):
return
self
.
_storage
.
isReadOnly
()
def
invalidate
(
self
,
oid
):
def
invalidate
(
self
,
oid
):
"""Invalidate a particular oid
"""Invalidate a particular oid
...
...
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