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
6bb9f884
Commit
6bb9f884
authored
Jun 07, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated doc strings.
Removed the soon to be replaced readDetached,
parent
7c12ad97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
src/ZODB/interfaces.py
src/ZODB/interfaces.py
+9
-18
No files found.
src/ZODB/interfaces.py
View file @
6bb9f884
...
...
@@ -100,8 +100,9 @@ class IConnection(Interface):
Groups of methods:
User Methods:
root, get, add, close, db, sync, isReadOnly, cacheGC, cacheFullSweep,
cacheMinimize, getVersion, modifiedInVersion
root, get, add, close, db, sync, isReadOnly, cacheGC,
cacheFullSweep, cacheMinimize, getVersion,
modifiedInVersion
Experimental Methods:
onCloseCallbacks
...
...
@@ -902,27 +903,17 @@ class IBlob(Interface):
"""A BLOB supports efficient handling of large data within ZODB."""
def
open
(
mode
):
"""
Returns a file(-like) object for handling the blob data.
"""
Open a blob
mode: Mode to open the file with. Possible values: r,w,r+,a
"""
def
openDetached
(
class_
=
file
):
"""Returns a file(-like) object in read mode that can be used
outside of transaction boundaries.
The file handle returned by this method is read-only and at the
beginning of the file.
Returns a file(-like) object for handling the blob data.
The handle is not attached to the blob and can be used outside of a
transaction.
Optionally the class that should be used to open the file can be
specified. This can be used to e.g. use Zope's FileStreamIterator.
mode: Mode to open the file with. Possible values: r,w,r+,a
"""
def
consumeFile
(
filename
):
"""Will replace the current data of the blob with the file given under
"""Consume a file.
Eplace the current data of the blob with the file given under
filename.
This method uses link-like semantics internally and has the requirement
...
...
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