cybertools/storage/README.txt
helmutm ec347fa5cf more on cybertools.storage.filesystem for use with loops ExternalFile
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1546 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-01-11 15:44:02 +00:00

19 lines
624 B
Text

===============================
Controlling the storage of data
===============================
($Id$)
>>> import os
>>> from cybertools import storage
>>> directory = os.path.dirname(storage.__file__)
>>> from cybertools.storage.filesystem import explicitDirectoryStorage
>>> storage = explicitDirectoryStorage(os.path.join(directory, 'testdata'))
>>> storage.getDir('demo')
'/home/.../cybertools/storage/testdata/demo'
>>> from cybertools.storage.filesystem import instanceVarSubdirectoryStorage
>>> storage = instanceVarSubdirectoryStorage()
>>> storage.getDir('demo')
'.../var/extfiles/demo'