[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/ - fixed dotted names by setting __module__ explicitly

Yvo Schubbe cvs-admin at zope.org
Tue Sep 10 10:32:58 CEST 2013


Log message for revision 130306:
  - fixed dotted names by setting __module__ explicitly

Changed:
  U   Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt
  U   Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_content.py
  U   Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_tools.py

-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt	2013-09-10 08:32:46 UTC (rev 130305)
+++ Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt	2013-09-10 08:32:58 UTC (rev 130306)
@@ -4,6 +4,8 @@
 2.3.0 (unreleased)
 ------------------
 
+- interfaces: Fixed dotted names by setting __module__ explicitly.
+
 - profiles and upgrade: Added new `Members Folder` and `Home Folder` types.
   This allows to customize member area creation and behavior by modifying the
   special portal types. The 'createMemberContent' hook is deprecated. An

Modified: Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_content.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_content.py	2013-09-10 08:32:46 UTC (rev 130305)
+++ Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_content.py	2013-09-10 08:32:58 UTC (rev 130306)
@@ -15,13 +15,18 @@
 
 from zope.interface import Interface
 
+
 class IHTMLScrubber(Interface):
     """ Utility inteface for scrubbing user-supplied HTML.
     """
+
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def scrub(html):
         """ Return 'scrubbed' HTML.
         """
 
+
 class IDocument(Interface):
 
     """ Textual content, in one of several formats.
@@ -29,6 +34,8 @@
     o Allowed formats include: structured text, HTML, plain text.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def CookedBody():
         """ Get the "cooked" (ready for presentation) form of the text.
         """
@@ -43,6 +50,8 @@
     """ Updatable form of IDocument.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def edit(text_format, text, file='', safety_belt=''):
         """ Update the document.
 
@@ -56,6 +65,8 @@
     """A special document for news.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def edit(text, description=None, text_format=None):
         """Edit the News Item.
         """
@@ -66,12 +77,16 @@
     """Updatable form of INewsItem.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
 
+
 class ILink(Interface):
 
     """ URL as content.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def getRemoteUrl():
         """ Return the URL to which the link points, as a string.
         """
@@ -82,6 +97,8 @@
     """ Updatable form of ILink.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def edit(remote_url):
         """ Update the link.
 
@@ -96,6 +113,8 @@
     """ Link to an internal object.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def getObject():
         """ Get the actual object that the Favorite is linking to.
         """
@@ -106,12 +125,16 @@
     """ Updatable form of IFavorite.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
 
+
 class IFile(Interface):
 
     """ Binary content.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def get_size():
         """ Get the byte size of the file data.
         """
@@ -130,6 +153,8 @@
     """ Updatable form of IFile.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def manage_upload(file='', REQUEST=None):
         """ Replaces the current data of the object with file.
         """
@@ -140,6 +165,8 @@
     """ Image content.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def __str__():
         """ Get the default HTML 'img' tag for this image.
         """
@@ -149,3 +176,5 @@
 
     """ Updatable form of IImage.
     """
+
+    __module__ = 'Products.CMFDefault.interfaces'

Modified: Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_tools.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_tools.py	2013-09-10 08:32:46 UTC (rev 130305)
+++ Products.CMFDefault/trunk/Products/CMFDefault/interfaces/_tools.py	2013-09-10 08:32:58 UTC (rev 130306)
@@ -21,6 +21,8 @@
     """ Declare product-specific APIs for CMFDefault's tool.
     """
 
+    __module__ = 'Products.CMFDefault.interfaces'
+
     def setMembersFolderById(id=''):
         """ Set the members folder object by its id.
 



More information about the checkins mailing list