[Checkins] SVN: zope3docs/source/migration/34to35.rst Add note about native blob support in ZODB 3.9 FileStorage.

Dan Korostelev nadako at gmail.com
Mon Feb 9 16:34:07 EST 2009


Log message for revision 96345:
  Add note about native blob support in ZODB 3.9 FileStorage.

Changed:
  U   zope3docs/source/migration/34to35.rst

-=-
Modified: zope3docs/source/migration/34to35.rst
===================================================================
--- zope3docs/source/migration/34to35.rst	2009-02-09 21:27:08 UTC (rev 96344)
+++ zope3docs/source/migration/34to35.rst	2009-02-09 21:34:07 UTC (rev 96345)
@@ -140,3 +140,40 @@
 
 The new version of the ``zc.copy`` package now only contains backward-compatibility
 imports and is deprecated. ``zope.copy`` should be preferred for new developments.
+
+ZODB 3.9 FileStorage native blob support
+----------------------------------------
+
+The FileStorage component of ZODB 3.9 used in Zope 3.5 now supports
+blobs natively, so you don't need to use BlobStorage proxy for it
+anymore.
+
+Thus, you can specify blob directory directly to FileStorage. If you
+use ZConfig, that means something like this::
+
+  <filestorage>
+    path var/Data.fs
+    blob-dir var/blobs
+  </filestorage>
+
+instead of::
+
+  <blobstorage>
+    blob-dir var/blobs
+    <filestorage>
+      path var/Data.fs
+    </filestorage>
+  </blobstorage>
+
+If you creating a storage from python, that means something like this:
+
+.. code-block:: python
+
+  storage = FileStorage('var/Data.fs', blob_dir='var/blobs')
+
+instead of:
+
+.. code-block:: python
+
+  storage = BlobStorage('var/blobs', FileStorage('var/Data.fs'))
+ 
\ No newline at end of file



More information about the Checkins mailing list