[Checkins] SVN: zc.recipe.filestorage/tags/1.0.1/ create version 1.0.1 tag

Nikolay Kim fafhrd at datacom.kz
Wed Feb 27 15:02:34 EST 2008


Log message for revision 84352:
  create version 1.0.1 tag

Changed:
  A   zc.recipe.filestorage/tags/1.0.1/
  D   zc.recipe.filestorage/tags/1.0.1/CHANGES.txt
  A   zc.recipe.filestorage/tags/1.0.1/CHANGES.txt
  U   zc.recipe.filestorage/tags/1.0.1/setup.py
  D   zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py
  A   zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py

-=-
Copied: zc.recipe.filestorage/tags/1.0.1 (from rev 84348, zc.recipe.filestorage/trunk)

Deleted: zc.recipe.filestorage/tags/1.0.1/CHANGES.txt
===================================================================
--- zc.recipe.filestorage/trunk/CHANGES.txt	2008-02-27 18:39:03 UTC (rev 84348)
+++ zc.recipe.filestorage/tags/1.0.1/CHANGES.txt	2008-02-27 20:02:32 UTC (rev 84352)
@@ -1,8 +0,0 @@
-=======
-CHANGES
-=======
-
-1.0.0 (2007-11-03)
-------------------
-
-- Initial release.

Copied: zc.recipe.filestorage/tags/1.0.1/CHANGES.txt (from rev 84351, zc.recipe.filestorage/trunk/CHANGES.txt)
===================================================================
--- zc.recipe.filestorage/tags/1.0.1/CHANGES.txt	                        (rev 0)
+++ zc.recipe.filestorage/tags/1.0.1/CHANGES.txt	2008-02-27 20:02:32 UTC (rev 84352)
@@ -0,0 +1,14 @@
+=======
+CHANGES
+=======
+
+1.1.0 (2008-??-??)
+------------------
+
+- Removed 'shared-blob-dir' from blobstorage section.
+
+
+1.0.0 (2007-11-03)
+------------------
+
+- Initial release.

Modified: zc.recipe.filestorage/tags/1.0.1/setup.py
===================================================================
--- zc.recipe.filestorage/trunk/setup.py	2008-02-27 18:39:03 UTC (rev 84348)
+++ zc.recipe.filestorage/tags/1.0.1/setup.py	2008-02-27 20:02:32 UTC (rev 84352)
@@ -3,7 +3,7 @@
 name = "zc.recipe.filestorage"
 setup(
     name=name,
-    version="1.1.0dev",
+    version="1.0.1",
     author="Jim Fulton",
     author_email="jim at zope.com",
     description="ZC Buildout recipe for defining a file-storage",

Deleted: zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py
===================================================================
--- zc.recipe.filestorage/trunk/zc/recipe/filestorage/__init__.py	2008-02-27 18:39:03 UTC (rev 84348)
+++ zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py	2008-02-27 20:02:32 UTC (rev 84352)
@@ -1,79 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006, 2007 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (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.
-#
-##############################################################################
-
-import logging, os
-
-
-class Recipe:
-
-    def __init__(self, buildout, name, options):
-        self.name, self.options = name, options
-
-        path = options.get('path')
-        if path is None:
-            path = os.path.join(buildout['buildout']['parts-directory'],
-                                self.name, 'Data.fs')
-            self.make_part = True
-        else:
-            path = os.path.join(buildout['buildout']['directory'], path)
-            if not os.path.exists(path):
-                logging.getLogger('zc.recipe.filestorage').error(
-                    "%s does not exixt", path)
-            self.make_part = False
-        options['path'] = path
-
-        blob_dir = options.get('blob-dir', '')
-        if not blob_dir:
-            template = plain_template
-        else:
-            template = blob_template
-            blob_dir = os.path.join(buildout['buildout']['directory'],
-                                    blob_dir)
-        options['blob-dir'] = blob_dir
-        shared = options.get('shared-blob-dir', 'no')
-
-        options['zconfig'] = template % dict(
-            path=path,
-            blob_dir=blob_dir,
-            shared=shared)
-
-    def install(self):
-        if self.make_part:
-            part = os.path.dirname(self.options['path'])
-            if not os.path.exists(part):
-                os.mkdir(part)
-        return ()
-
-    def update(self):
-        self.install()
-
-plain_template = """\
-<zodb>
-  <filestorage>
-    path %(path)s
-  </filestorage>
-</zodb>
-"""
-
-blob_template = """\
-<zodb>
-  <blobstorage>
-    blob-dir %(blob_dir)s
-    shared-blob-dir %(shared)s
-    <filestorage>
-      path %(path)s
-    </filestorage>
-  </blobstorage>
-</zodb>
-"""

Copied: zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py (from rev 84351, zc.recipe.filestorage/trunk/zc/recipe/filestorage/__init__.py)
===================================================================
--- zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py	                        (rev 0)
+++ zc.recipe.filestorage/tags/1.0.1/zc/recipe/filestorage/__init__.py	2008-02-27 20:02:32 UTC (rev 84352)
@@ -0,0 +1,76 @@
+##############################################################################
+#
+# Copyright (c) 2006, 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+
+import logging, os
+
+
+class Recipe:
+
+    def __init__(self, buildout, name, options):
+        self.name, self.options = name, options
+
+        path = options.get('path')
+        if path is None:
+            path = os.path.join(buildout['buildout']['parts-directory'],
+                                self.name, 'Data.fs')
+            self.make_part = True
+        else:
+            path = os.path.join(buildout['buildout']['directory'], path)
+            if not os.path.exists(path):
+                logging.getLogger('zc.recipe.filestorage').error(
+                    "%s does not exixt", path)
+            self.make_part = False
+        options['path'] = path
+
+        blob_dir = options.get('blob-dir', '')
+        if not blob_dir:
+            template = plain_template
+        else:
+            template = blob_template
+            blob_dir = os.path.join(buildout['buildout']['directory'],
+                                    blob_dir)
+        options['blob-dir'] = blob_dir
+
+        options['zconfig'] = template % dict(
+            path=path,
+            blob_dir=blob_dir)
+
+    def install(self):
+        if self.make_part:
+            part = os.path.dirname(self.options['path'])
+            if not os.path.exists(part):
+                os.mkdir(part)
+        return ()
+
+    def update(self):
+        self.install()
+
+plain_template = """\
+<zodb>
+  <filestorage>
+    path %(path)s
+  </filestorage>
+</zodb>
+"""
+
+blob_template = """\
+<zodb>
+  <blobstorage>
+    blob-dir %(blob_dir)s
+    <filestorage>
+      path %(path)s
+    </filestorage>
+  </blobstorage>
+</zodb>
+"""



More information about the Checkins mailing list