From 3107878c7ff7d002a47b58e1f94e1f6df1cec651 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 1 Apr 2007 07:34:50 +0000 Subject: [PATCH] added IStorageInfo git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1672 fd906abe-77d9-0310-91a1-e0d9ade77398 --- storage/interfaces.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/storage/interfaces.py b/storage/interfaces.py index 92bf635..a8fe14c 100644 --- a/storage/interfaces.py +++ b/storage/interfaces.py @@ -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__ +