[Zope3-checkins] CVS: Zope3/src/zope/app/content - file.py:1.9

Jim Fulton jim@zope.com
Mon, 19 May 2003 17:25:07 -0400


Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv17277/src/zope/app/content

Modified Files:
	file.py 
Log Message:
Changed File to implement FileContent. This is important so that
relative URLs in HTML in files are relative to the folders containing
the files.


=== Zope3/src/zope/app/content/file.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/content/file.py:1.8	Thu May  1 15:35:10 2003
+++ Zope3/src/zope/app/content/file.py	Mon May 19 17:25:07 2003
@@ -22,13 +22,13 @@
 from transaction import get_transaction
 
 from zope.publisher.browser import FileUpload
-from zope.app.interfaces.content.file import IFile, IReadFile
+from zope.app.interfaces.content.file import IFile, IReadFile, IFileContent
 
 # set the size of the chunks
 MAXCHUNKSIZE = 1 << 16
 
 class File(Persistent):
-    __implements__ = IFile
+    __implements__ = IFileContent, IFile
 
     def __init__(self, data='', contentType=''):
         self.data = data