[Zope3-checkins] CVS: Zope3/src/zope/app/content - i18nfile.py:1.5 i18nimage.py:1.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Feb 13 22:27:45 EST 2004


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

Modified Files:
	i18nfile.py i18nimage.py 
Log Message:
- Cleaned up some module doc strings.

- Put I18n content component interfaces together.

- Updated I18n Content Component implementation and tests.


=== Zope3/src/zope/app/content/i18nfile.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/content/i18nfile.py:1.4	Wed Jul 23 17:46:18 2003
+++ Zope3/src/zope/app/content/i18nfile.py	Fri Feb 13 22:27:14 2004
@@ -11,13 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""File implementation that can have its content in multiple languages.
 
 $Id$
 """
-
 import persistence
-from zope.app.interfaces.content.i18nfile import II18nFile
+from zope.app.interfaces.content.i18n import II18nFile
 from zope.app.content.file import File
 from zope.interface import implements
 


=== Zope3/src/zope/app/content/i18nimage.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/content/i18nimage.py:1.4	Sat Jun  7 02:37:23 2003
+++ Zope3/src/zope/app/content/i18nimage.py	Fri Feb 13 22:27:14 2004
@@ -11,28 +11,27 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
-Revision Information:
+"""Internationalized Image Content Component.
+
 $Id$
 """
-
 from zope.app.content.image import Image, getImageInfo
 from zope.app.content.i18nfile import I18nFile
-from zope.app.interfaces.content.i18nimage import II18nImage
+from zope.app.interfaces.content.i18n import II18nImage
 from zope.interface import implements
 
 class I18nImage(I18nFile):
-    """An internationalized Image object.  Note that images of all
-    languages share the same content type.
-    """
+    """An internationalized Image object.
 
+    Note that images of all languages share the same content type.
+    """
     implements(II18nImage)
 
     def _create(self, data):
         return Image(data)
 
     def setData(self, data, language=None):
-        '''See interface IFile'''
+        '''See zope.app.interfaces.file.IFile'''
         super(I18nImage, self).setData(data, language)
 
         if language is None or language == self.getDefaultLanguage():
@@ -44,5 +43,5 @@
                 self.setContentType(contentType)
 
     def getImageSize(self, language=None):
-        '''See interface IImage'''
+        '''See zope.app.interfaces.image.IImage'''
         return self._get(language).getImageSize()




More information about the Zope3-Checkins mailing list