[Checkins] SVN: zc.recipe.filestorage/trunk/README.txt - whitespace
Christian Theune
ct at gocept.com
Thu Jan 4 12:24:56 EST 2007
Log message for revision 71711:
- whitespace
- REST-style
Changed:
U zc.recipe.filestorage/trunk/README.txt
-=-
Modified: zc.recipe.filestorage/trunk/README.txt
===================================================================
--- zc.recipe.filestorage/trunk/README.txt 2007-01-04 16:58:40 UTC (rev 71710)
+++ zc.recipe.filestorage/trunk/README.txt 2007-01-04 17:24:55 UTC (rev 71711)
@@ -1,18 +1,18 @@
Recipe for setting up a filestorage
===================================
-This recipe can be used to define a file-storage. It creates
-a ZConfig file-storage database specification that can be used
-by other recipes to generate ZConfig configuration files.
+This recipe can be used to define a file-storage. It creates a ZConfig
+file-storage database specification that can be used by other recipes to
+generate ZConfig configuration files.
-This recipe takes an optional path option. If none is given,
-it creates and uses a subdirectory of the buildout parts directory
-with the same name as the part.
+This recipe takes an optional path option. If none is given, it creates and
+uses a subdirectory of the buildout parts directory with the same name as the
+part.
The recipe records a zconfig option for use by other recipes.
-We'll show a couple of examples, using a dictionary as a simulated
-buildout object:
+We'll show a couple of examples, using a dictionary as a simulated buildout
+object::
>>> import zc.recipe.filestorage
>>> buildout = dict(
@@ -25,7 +25,7 @@
... )
>>> recipe = zc.recipe.filestorage.Recipe(
... buildout, 'db', buildout['db'])
-
+
>>> print buildout['db']['path']
/buildout/foo/Main.fs
@@ -49,7 +49,7 @@
>>> recipe = zc.recipe.filestorage.Recipe(
... buildout, 'db', buildout['db'])
-
+
>>> print buildout['db']['path']
/tmp/tmpQo0DTB/db/Data.fs
@@ -59,9 +59,9 @@
path /tmp/tmpQo0DTB/db/Data.fs
</filestorage>
</zodb>
-
+
>>> recipe.install()
-
+
>>> import os
>>> os.listdir(d)
['db']
@@ -71,5 +71,5 @@
- Add support for various file-storage options
-- Create a ZODB-configuration recipe that is meant to be a base class
- for storage recipes and provides database-configuration options.
+- Create a ZODB-configuration recipe that is meant to be a base class for
+ storage recipes and provides database-configuration options.
More information about the Checkins
mailing list