[Checkins] SVN: zope.filerepresentation/trunk/ removed dependency on zope.container
Fabio Tranchitella
kobold at kobold.it
Wed Jul 8 14:45:44 EDT 2009
Log message for revision 101754:
removed dependency on zope.container
Changed:
U zope.filerepresentation/trunk/CHANGES.txt
U zope.filerepresentation/trunk/setup.py
U zope.filerepresentation/trunk/src/zope/filerepresentation/interfaces.py
-=-
Modified: zope.filerepresentation/trunk/CHANGES.txt
===================================================================
--- zope.filerepresentation/trunk/CHANGES.txt 2009-07-08 16:29:17 UTC (rev 101753)
+++ zope.filerepresentation/trunk/CHANGES.txt 2009-07-08 18:45:44 UTC (rev 101754)
@@ -7,6 +7,10 @@
- Removed DEPENDENCIES.cfg
+- Removed dependency on zope.container: IReadDirectory and IWriteDirectory
+ inherit only from interfaces defined in zope.interface and
+ zope.interface.common.mapping.
+
3.5.0 (2009-01-31)
------------------
Modified: zope.filerepresentation/trunk/setup.py
===================================================================
--- zope.filerepresentation/trunk/setup.py 2009-07-08 16:29:17 UTC (rev 101753)
+++ zope.filerepresentation/trunk/setup.py 2009-07-08 18:45:44 UTC (rev 101754)
@@ -52,7 +52,6 @@
]),
install_requires=['setuptools',
'zope.interface',
- 'zope.container'
],
include_package_data=True,
zip_safe=True,
Modified: zope.filerepresentation/trunk/src/zope/filerepresentation/interfaces.py
===================================================================
--- zope.filerepresentation/trunk/src/zope/filerepresentation/interfaces.py 2009-07-08 16:29:17 UTC (rev 101753)
+++ zope.filerepresentation/trunk/src/zope/filerepresentation/interfaces.py 2009-07-08 18:45:44 UTC (rev 101754)
@@ -87,8 +87,10 @@
__docformat__ = 'restructuredtext'
from zope.interface import Interface
-from zope.container.interfaces import IReadContainer, IWriteContainer
+from zope.interface.common.mapping import IEnumerableMapping, IItemMapping, \
+ IReadMapping
+
class IReadFile(Interface):
"""Provide read access to file data
"""
@@ -110,14 +112,21 @@
# TODO: We will add ILargeReadFile and ILargeWriteFile to efficiently
# handle large data.
-class IReadDirectory(IReadContainer):
+class IReadDirectory(IEnumerableMapping, IItemMapping, IReadMapping):
"""Objects that should be treated as directories for reading
"""
-class IWriteDirectory(IWriteContainer):
+class IWriteDirectory(Interface):
"""Objects that should be treated as directories for writing
"""
+ def __setitem__(name, object):
+ """Add the given `object` to the directory under the given name."""
+
+ def __delitem__(name):
+ """Delete the named object from the directory."""
+
+
class IDirectoryFactory(Interface):
def __call__(name):
More information about the Checkins
mailing list