cybertools/storage
2011-09-29 18:17:35 +02:00
..
pzope work in progress: make cybertools package work with BlueBream 1.0 2011-09-29 18:17:35 +02:00
__init__.py created cybertools.storage 2006-10-08 22:51:37 +00:00
filesystem.py avoid conversion to unicode when working with path names 2010-10-14 08:52:22 +00:00
interfaces.py improving loops.integrator.collextion: identify external file via uniqueAddress property 2007-05-05 16:44:02 +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'