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
nexedi
ZODB
Commits
22bdd6d6
Commit
22bdd6d6
authored
Mar 04, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add isReadOnly() method to Connection.
parent
7f44cab0
Changes
1
Hide 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 @
22bdd6d6
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""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
POSException
import
ConflictError
,
ReadConflictError
...
...
@@ -91,6 +91,8 @@ class Connection(ExportImport.ExportImport):
def
setLocalTransaction
(
self
):
"""Use a transaction bound to the connection rather than the thread"""
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
()
return
self
.
_transaction
...
...
@@ -474,6 +476,9 @@ class Connection(ExportImport.ExportImport):
def
getVersion
(
self
):
return
self
.
_version
def
isReadOnly
(
self
):
return
self
.
_storage
.
isReadOnly
()
def
invalidate
(
self
,
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