added IStorageInfo

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1672 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-04-01 07:34:50 +00:00
parent a09dd3008b
commit 3107878c7f

View file

@ -22,7 +22,16 @@ interface definitions for storage utilities.
$Id$
"""
from zope.interface import Interface
from zope.interface import Interface, Attribute
class IStorageInfo(Interface):
""" Provides information about the storage of an object.
"""
storageName = Attribute('Name of a utility that is used for storage of the object')
storageParams = Attribute('Dictionary with storage parameters, e.g. a '
'directory name')
class IExternalStorage(Interface):
@ -41,3 +50,6 @@ class IExternalStorage(Interface):
where and how the data can be found.
"""
# TODO: provide file and/or iterator access methods
# read, write, close, __iter__