[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/content - i18nimage.py:1.3
Steve Alexander
steve@cat-box.net
Fri, 6 Jun 2003 16:45:01 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/content
In directory cvs.zope.org:/tmp/cvs-serv19301/src/zope/app/interfaces/content
Modified Files:
i18nimage.py
Log Message:
yet another batch of updated interface declarations
=== Zope3/src/zope/app/interfaces/content/i18nimage.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/content/i18nimage.py:1.2 Wed Dec 25 09:12:59 2002
+++ Zope3/src/zope/app/interfaces/content/i18nimage.py Fri Jun 6 16:44:31 2003
@@ -20,6 +20,7 @@
from zope.app.interfaces.content.i18nfile import II18nFile
from zope.app.content.i18nfile import I18nFile
from zope.app.interfaces.annotation import IAnnotatable
+from zope.interface import implements
class II18nImage(II18nFile, IImage):
@@ -31,16 +32,11 @@
languages share the same content type.
"""
- __implements__ = (
- II18nImage,
- IAnnotatable,
- )
-
+ implements(II18nImage, IAnnotatable)
def _create(self, data):
return Image(data)
-
def setData(self, data, language=None):
'''See interface IFile'''
super(I18nImage, self).setData(data, language)
@@ -52,7 +48,6 @@
contentType = getImageInfo(self.getData(language))[0]
if contentType:
self.setContentType(contentType)
-
def getImageSize(self, language=None):
'''See interface IImage'''