[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/File - File.py:1.1.2.4 NaiveFile.py:1.1.2.4
Casey Duncan
casey@zope.com
Fri, 29 Mar 2002 09:34:52 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/File
In directory cvs.zope.org:/tmp/cvs-serv3119/lib/python/Zope/App/OFS/File
Modified Files:
Tag: Zope-3x-branch
File.py NaiveFile.py
Log Message:
Updated implementations to utilize mementos
=== Zope3/lib/python/Zope/App/OFS/File/File.py 1.1.2.3 => 1.1.2.4 ===
from FileChunk import FileChunk
from IFile import IFile
-from Zope.App.Security.IAttributeRolePermissionManageable \
- import IAttributeRolePermissionManageable
+from Zope.App.OFS.Memento.IAttributeMementoStorable \
+ import IAttributeMementoStorable
# set the size of the chunks
MAXCHUNKSIZE = 1 << 16
@@ -27,8 +27,10 @@
class File(Persistence.Persistent):
""" """
- __implements__ = IFile
-
+ __implements__ = (
+ IFile,
+ IAttributeMementoStorable,
+ )
def __init__(self, data=None, contentType=None):
""" """
=== Zope3/lib/python/Zope/App/OFS/File/NaiveFile.py 1.1.2.3 => 1.1.2.4 ===
import Persistence
from IFile import IFile
-from Zope.App.Security.IAttributeRolePermissionManageable \
- import IAttributeRolePermissionManageable
+from Zope.App.OFS.Memento.IAttributeMementoStorable \
+ import IAttributeMementoStorable
_RAISE_KEYERROR = []
@@ -30,8 +30,10 @@
of Data.
"""
- __implements__ = IFile
-
+ __implements__ = (
+ IFile,
+ IAttributeMementoStorable,
+ )
def __init__(self, data=None, contentType=None):
""" """