[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image - Image.py:1.1.2.2
Stephan Richter
srichter@cbu.edu
Thu, 28 Mar 2002 18:52:44 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image
In directory cvs.zope.org:/tmp/cvs-serv29697/Image
Modified Files:
Tag: Zope-3x-branch
Image.py
Log Message:
Resolved Issue 45
It was actually just a small bug in the File's setData() method and
a bug in how setData() worked in Image.
=== Zope3/lib/python/Zope/App/OFS/Content/Image/Image.py 1.1.2.1 => 1.1.2.2 ===
- def edit(self, data, contentType=None):
- """See interface IFile
+ def setData(self, data):
+ """ """
+ super(Image, self).setData(data)
- Note: It ignores the content type!
- """
-
- contentType, self._width, self._height = getImageInfo(data)
+ contentType = None
+ contentType, self._width, self._height = getImageInfo(self._data)
if contentType:
self._contentType = contentType
- self.setData(data)
-
+
+
+
############################################################
# Implementation methods for interface