Commit 1e6f658d authored by Jim Fulton's avatar Jim Fulton

Updated doc strings.

Removed the soon to be replaced readDetached,
parent ca7c8812
...@@ -100,8 +100,9 @@ class IConnection(Interface): ...@@ -100,8 +100,9 @@ class IConnection(Interface):
Groups of methods: Groups of methods:
User Methods: User Methods:
root, get, add, close, db, sync, isReadOnly, cacheGC, cacheFullSweep, root, get, add, close, db, sync, isReadOnly, cacheGC,
cacheMinimize, getVersion, modifiedInVersion cacheFullSweep, cacheMinimize, getVersion,
modifiedInVersion
Experimental Methods: Experimental Methods:
onCloseCallbacks onCloseCallbacks
...@@ -902,27 +903,17 @@ class IBlob(Interface): ...@@ -902,27 +903,17 @@ class IBlob(Interface):
"""A BLOB supports efficient handling of large data within ZODB.""" """A BLOB supports efficient handling of large data within ZODB."""
def open(mode): 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 Returns a file(-like) object for handling the blob data.
"""
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.
The handle is not attached to the blob and can be used outside of a mode: Mode to open the file with. Possible values: r,w,r+,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.
""" """
def consumeFile(filename): 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. filename.
This method uses link-like semantics internally and has the requirement This method uses link-like semantics internally and has the requirement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment