[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/i18nfile/ Update doc strings to ReST

Phil Ruggera pruggera at san.rr.com
Wed Aug 4 00:17:33 EDT 2004


Log message for revision 26890:
  Update doc strings to ReST


Changed:
  U   Zope3/trunk/src/zope/app/i18nfile/__init__.py
  U   Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py
  U   Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py
  U   Zope3/trunk/src/zope/app/i18nfile/i18nfile.py
  U   Zope3/trunk/src/zope/app/i18nfile/i18nimage.py
  U   Zope3/trunk/src/zope/app/i18nfile/interfaces.py


-=-
Modified: Zope3/trunk/src/zope/app/i18nfile/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/__init__.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/__init__.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,5 +15,7 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from i18nfile import I18nFile
 from i18nimage import I18nImage

Modified: Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from urllib import quote
 from zope.i18n.negotiator import negotiator
 from zope.app.i18n import ZopeMessageIDFactory as _

Modified: Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from urllib import quote
 
 from zope.i18n.negotiator import negotiator
@@ -65,7 +67,7 @@
 
 
     def tag(self, height=None, width=None, **args):
-        """See ImageData.tag."""
+        """See `ImageData.tag.`"""
 
         language = None
         if self.request is not None and \

Modified: Zope3/trunk/src/zope/app/i18nfile/i18nfile.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/i18nfile.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/i18nfile.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from persistent import Persistent
 from zope.interface import implements
 from zope.app.file.file import File
@@ -64,37 +66,37 @@
         return file
 
     def getData(self, language=None):
-        """See interface II18nFile"""
+        """See interface `II18nFile`"""
         return self._get(language).data
 
     def setData(self, data, language=None):
-        """See interface II18nFile"""
+        """See interface `II18nFile`"""
         self._get_or_add(language).data = data
 
     # See IFile.
     data = property(getData, setData)
 
     def getSize(self, language=None):
-        """See interface II18nFile"""
+        """See interface `II18nFile`"""
         return self._get(language).getSize()
 
     def getDefaultLanguage(self):
-        """See II18nAware"""
+        """See `II18nAware`"""
         return self.defaultLanguage
 
     def setDefaultLanguage(self, language):
-        """See II18nAware"""
+        """See `II18nAware`"""
         if language not in self._data:
             raise ValueError(
                   'cannot set nonexistent language (%s) as default' % language)
         self.defaultLanguage = language
 
     def getAvailableLanguages(self):
-        """See II18nAware"""
+        """See `II18nAware`"""
         return self._data.keys()
 
     def removeLanguage(self, language):
-        """See interface II18nFile"""
+        """See interface `II18nFile`"""
         if language == self.defaultLanguage:
             raise ValueError('cannot remove default language (%s)' % language)
         if language in self._data:

Modified: Zope3/trunk/src/zope/app/i18nfile/i18nimage.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/i18nimage.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/i18nimage.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from zope.interface import implements
 from zope.app.file.image import Image, getImageInfo
 from zope.app.i18nfile.i18nfile import I18nFile
@@ -32,7 +34,7 @@
         return Image(data)
 
     def setData(self, data, language=None):
-        '''See interface II18nFile'''
+        '''See interface `II18nFile`'''
         super(I18nImage, self).setData(data, language)
 
         if language is None or language == self.getDefaultLanguage():
@@ -44,5 +46,5 @@
                 self.contentType = contentType
 
     def getImageSize(self, language=None):
-        '''See interface II18nImage'''
+        '''See interface `II18nImage`'''
         return self._get(language).getImageSize()

Modified: Zope3/trunk/src/zope/app/i18nfile/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/interfaces.py	2004-08-04 04:00:36 UTC (rev 26889)
+++ Zope3/trunk/src/zope/app/i18nfile/interfaces.py	2004-08-04 04:17:33 UTC (rev 26890)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+__docformat__ = 'restructuredtext'
+
 from zope.i18n.interfaces import II18nAware
 from zope.app.file.interfaces import IFile, IImage
 



More information about the Zope3-Checkins mailing list