[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image - Image.py:1.7 configure.zcml:1.11

Jim Fulton jim@zope.com
Mon, 11 Nov 2002 16:08:43 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image
In directory cvs.zope.org:/tmp/cvs-serv22201

Modified Files:
	Image.py configure.zcml 
Log Message:
Changed to use (single-line) Line field for content type.

Added an automatically-generated upload form that is customized with a
class to provide a custom widget (a file widget) for the data and to
provide size information.  The form is also custimized with a custom
template that adds size information. It uses macros from the base
template.

Had to provide a menu definition for I18nImage to avoid getting menu
definitions from IFile.



=== Zope3/lib/python/Zope/App/OFS/Content/Image/Image.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Image/Image.py:1.6	Mon Nov 11 10:32:04 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Image/Image.py	Mon Nov 11 16:08:12 2002
@@ -39,6 +39,7 @@
 
 
     def setData(self, data):
+        
         super(Image, self).setData(data)
 
         if data is not None:


=== Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml:1.10	Fri Oct  4 16:02:02 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml	Mon Nov 11 16:08:12 2002
@@ -22,7 +22,9 @@
 
     <require
         permission="Zope.ManageContent"
-        interface="Zope.App.OFS.Content.File.IFile.IWriteFile" />
+        interface="Zope.App.OFS.Content.File.IFile.IWriteFile"
+        set_schema="Zope.App.OFS.Content.File.IFile.IReadFile"
+        />
 
     <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />