added IStorageInfo
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1672 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
a09dd3008b
commit
3107878c7f
1 changed files with 13 additions and 1 deletions
|
@ -22,7 +22,16 @@ interface definitions for storage utilities.
|
||||||
$Id$
|
$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):
|
class IExternalStorage(Interface):
|
||||||
|
@ -41,3 +50,6 @@ class IExternalStorage(Interface):
|
||||||
where and how the data can be found.
|
where and how the data can be found.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# TODO: provide file and/or iterator access methods
|
||||||
|
# read, write, close, __iter__
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue