From: <zo...@us...> - 2003-06-26 06:45:09
|
Update of /cvsroot/plone/CMFPlone In directory sc8-pr-cvs1:/tmp/cvs-serv24279 Modified Files: imagePatch.py Log Message: of course FSImage has its own code, why wouldn't it? Index: imagePatch.py =================================================================== RCS file: /cvsroot/plone/CMFPlone/imagePatch.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** imagePatch.py 26 Jun 2003 06:25:11 -0000 1.1 --- imagePatch.py 26 Jun 2003 06:45:06 -0000 1.2 *************** *** 3,6 **** --- 3,7 ---- # patch Image.py from OFS.Image import Image + from Products.CMFCore.FSImage import FSImage def tag(self, height=None, width=None, alt=None, *************** *** 49,52 **** return '%s />' % result ! Image.tag = tag --- 50,58 ---- return '%s />' % result ! ! def fstag(self, *args, **kwargs): ! self._updateFromFS() ! return tag(self, *args, **kwargs) ! Image.tag = tag + FSImage.tag = fstag \ No newline at end of file |