cybertools/storage
helmutm 315076a575 eliminate Zope 3.3 deprecation messages from loops tests
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1587 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-02-18 14:17:26 +00:00
..
pzope added simple Deferred implementation 2007-01-11 12:35:21 +00:00
__init__.py created cybertools.storage 2006-10-08 22:51:37 +00:00
filesystem.py more on cybertools.storage.filesystem for use with loops ExternalFile 2007-01-11 15:44:02 +00:00
interfaces.py eliminate Zope 3.3 deprecation messages from loops tests 2007-02-18 14:17:26 +00:00
README.txt more on cybertools.storage.filesystem for use with loops ExternalFile 2007-01-11 15:44:02 +00:00
tests.py created cybertools.storage 2006-10-08 22:51:37 +00:00

===============================
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'