[Zodb-checkins] SVN: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/ - moving to current naming standard

Christian Theune ct at gocept.com
Mon Mar 21 14:21:38 EST 2005


Log message for revision 29622:
   - moving to current naming standard
  
  

Changed:
  D   ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/README.txt
  A   ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/blob.txt

-=-
Deleted: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/README.txt
===================================================================
--- ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/README.txt	2005-03-21 19:19:19 UTC (rev 29621)
+++ ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/README.txt	2005-03-21 19:21:38 UTC (rev 29622)
@@ -1,84 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2005 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-
-ZODB Blob support
-=================
-
-You create a blob like this:
-
-    >>> from ZODB.Blobs.Blob import Blob
-    >>> myblob = Blob()
-
-Opening a new Blob for reading fails:
-
-    >>> myblob.open("r")
-    Traceback (most recent call last):
-        ...
-    BlobError: Blob does not exist.
-
-But we can write data to a new Blob by opening it for writing:
-
-    >>> f = myblob.open("w")
-    >>> f.write("Hi, Blob!")
-
-If we try to open a Blob again while it is open for writing, we get an error:
-
-    >>> myblob.open("r")
-    Traceback (most recent call last):
-        ...
-    BlobError: Already opened for writing.
-
-We can close the file:
-
-    >>> f.close()
-
-Now we can open it for reading:
-
-    >>> f2 = myblob.open("r")
-
-And we get the data back:
-
-    >>> f2.read()
-    'Hi, Blob!'
-
-If we want to, we can open it again:
-
-    >>> f3 = myblob.open("r")
-    >>> f3.read()
-    'Hi, Blob!'
-
-But we can't  open it for writing, while it is opened for reading:
-
-    >>> myblob.open("a")
-    Traceback (most recent call last):
-        ...
-    BlobError: Already opened for reading.
-
-Before we can write, we have to close the readers:
-
-    >>> f2.close()
-    >>> f3.close()
-
-Now we can open it for writing again and e.g. append data:
-
-    >>> f4 = myblob.open("a")
-    >>> f4.write("\nBlob is fine.")
-    >>> f4.close()
-
-Now we can read it:
-
-    >>> myblob.open("r").read()
-    'Hi, Blob!\nBlob is fine.'
-
-

Copied: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/blob.txt (from rev 29621, ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/README.txt)



More information about the Zodb-checkins mailing list