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

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


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

Changed:
  U   Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt
  U   Products.CMFCore/trunk/Products/CMFCore/interfaces/_content.py
  U   Products.CMFCore/trunk/Products/CMFCore/interfaces/_cookieCrumbler.py
  U   Products.CMFCore/trunk/Products/CMFCore/interfaces/_events.py
  U   Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py

-=-
Modified: Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt	2013-09-10 08:32:37 UTC (rev 130304)
+++ Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt	2013-09-10 08:32:46 UTC (rev 130305)
@@ -4,6 +4,8 @@
 2.3.0 (unreleased)
 ------------------
 
+- interfaces: Fixed dotted names by setting __module__ explicitly.
+
 - Skinnable: The skins tool is now looked up as utility.
   'getSkinsFolderName' is no longer supported, that method was removed.
 

Modified: Products.CMFCore/trunk/Products/CMFCore/interfaces/_content.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/interfaces/_content.py	2013-09-10 08:32:37 UTC (rev 130304)
+++ Products.CMFCore/trunk/Products/CMFCore/interfaces/_content.py	2013-09-10 08:32:46 UTC (rev 130305)
@@ -29,6 +29,8 @@
     o CMFCore.PortalContent implements this interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def SearchableText():
         """ Return a string containing textual information about the content.
 
@@ -47,6 +49,8 @@
     """ Interface for things which can have responses.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def createReply(title, text, Creator=None):
         """ Create a reply in the proper place.
 
@@ -89,6 +93,8 @@
     """ Oldstyle discussable interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def createReply(title, text, REQUEST, RESPONSE):
         """ Create a reply in the proper place.
 
@@ -153,6 +159,8 @@
     """ Interface for objects which are replies to IDiscussable objects.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def inReplyTo(REQUEST=None):
         """ Return the IDiscussable object to which this item is a reply.
 
@@ -191,6 +199,8 @@
     """ Minimal set of Dublin Core metadata elements.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def Title():
         """ Return a single string, the DCMI Title element (resource name).
 
@@ -220,6 +230,8 @@
     """ Dublin Core metadata elements supported by CMF and their semantics.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def listCreators():
         """ Return a sequence of DCMI Creator elements (resource authors).
 
@@ -366,6 +378,8 @@
     """ Provide Zope-internal date attributes for cataloging purposes.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def created():
         """ Return the DateTime form of CreationDate.
 
@@ -396,6 +410,8 @@
     """ Update interface for minimal set of mutable metadata.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def setTitle(title):
         """ Set DCMI Title element - resource name.
 
@@ -414,6 +430,8 @@
     """ Update interface for mutable metadata.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def setCreators(creators):
         """ Set DCMI Creator elements - resource authors.
 
@@ -471,6 +489,8 @@
     """ General interface for dynamic items.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def getPortalTypeName():
         """ Return the name of the type information for this object.
 
@@ -515,6 +535,8 @@
     """ Interface for notifying the catalog tool.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def indexObject():
         """ Index the object in the portal catalog.
         """
@@ -549,6 +571,8 @@
     """ Interface for notifying the workflow tool.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def notifyWorkflowCreated():
         """ Notify the workflow that the object was just created.
         """
@@ -559,7 +583,9 @@
     """Interface for managing opaque items.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 #
 #   Folderish interfaces
 #
@@ -568,6 +594,8 @@
     """ General interface for "folderish" content items.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def contentItems(filter=None):
         """ Return a sequence of (object ID, object) tuples for
             IContentish and IFolderish sub-objects.
@@ -617,7 +645,9 @@
     """ Marker interface for the object which serves as the root of a site.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 #
 #   IOpaqueItems interfaces
 #
@@ -634,6 +664,8 @@
       exceptions.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def __init__(obj, id):
         """Return the opaque item and assign it to 'obj' as attr with 'id'.
         """
@@ -652,6 +684,8 @@
     """CMF specific events upon copying, renaming and deletion.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def manage_afterClone(item):
         """After clone event hook.
         """
@@ -673,6 +707,8 @@
     """ Filter content for syndication.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def synContentValues():
         """ Return a list of IDublinCore objects to be syndicated.
 

Modified: Products.CMFCore/trunk/Products/CMFCore/interfaces/_cookieCrumbler.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/interfaces/_cookieCrumbler.py	2013-09-10 08:32:37 UTC (rev 130304)
+++ Products.CMFCore/trunk/Products/CMFCore/interfaces/_cookieCrumbler.py	2013-09-10 08:32:46 UTC (rev 130305)
@@ -9,6 +9,8 @@
     """Reads cookies during traversal and simulates the HTTP auth headers.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     auth_cookie = Attribute("""The key of the authorisation cookie""")
     name_cookie = Attribute("""They key of the authorised user cookie""")
     pw_cookie = Attribute("""The key of the password cookie""")

Modified: Products.CMFCore/trunk/Products/CMFCore/interfaces/_events.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/interfaces/_events.py	2013-09-10 08:32:37 UTC (rev 130304)
+++ Products.CMFCore/trunk/Products/CMFCore/interfaces/_events.py	2013-09-10 08:32:46 UTC (rev 130305)
@@ -22,24 +22,35 @@
     """Base interface for events around workflow action invocation
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     workflow = Attribute("The workflow definition object")
     action = Attribute("The name of the action being invoked")
 
+
 class IActionWillBeInvokedEvent(IWorkflowActionEvent):
 
     """Event fired immediately before a workflow action is invoked
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
+
 class IActionRaisedExceptionEvent(IWorkflowActionEvent):
 
     """Event fired when a workflow action raised an exception
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     exc = Attribute("The exception info for the exception raised")
 
+
 class IActionSucceededEvent(IWorkflowActionEvent):
 
     """Event fired when a workflow action succeeded
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     result = Attribute("The result of the workflow action")

Modified: Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py	2013-09-10 08:32:37 UTC (rev 130304)
+++ Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py	2013-09-10 08:32:46 UTC (rev 130305)
@@ -34,6 +34,8 @@
       providers".
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -106,6 +108,8 @@
     """ Objects that can be queried for actions.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def listActions(info=None, object=None):
         """ List known actions.
 
@@ -169,6 +173,8 @@
     """ Group of IAction objects and child categories.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def listActions():
         """ Return a sequence of IAction objects defined by this category.
 
@@ -183,6 +189,8 @@
     """ Specification for an action.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def getInfoData():
         """ Return a lazy mapping of the data needed to create an
             IActionInfo object.
@@ -223,12 +231,16 @@
         the action. If the list is empty, the user is allowed.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 #
 #   Caching policy tool interfaces
 #
 class ICachingPolicy(Interface):
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def getPolicyId():
         """
         """
@@ -318,6 +330,8 @@
     """ Compute HTTP cache headers for skin methods.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -350,6 +364,8 @@
     """Wrap the "stock" ZCatalog with custom behavior for the CMF.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id', 'Must be set to "portal_catalog"')
 
     # searchResults inherits security assertions from ZCatalog.
@@ -401,6 +417,8 @@
     """ Wrapper for catalogued objects, for indexing "virtual" attributes.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def allowedRolesAndUsers():
         """ Return a sequence roles and users with View permission.
 
@@ -414,6 +432,8 @@
         the portal catalog
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
 #
 #   PUT factory handler interfaces
 #
@@ -425,6 +445,8 @@
     of the record.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def __call__(name, typ, body):
         """ Return true if the rule matches, else false. """
 
@@ -448,6 +470,8 @@
     """ Apply policy mapping PUT arguments to a CMF portal type.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def findTypeName(name, typ, body):
         """ Return the the portal type (an ID) for a PUT request.
 
@@ -471,6 +495,8 @@
     """ Links content to discussions.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The tool's ID.
 
@@ -505,6 +531,8 @@
     """ Links content to discussions.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def overrideDiscussionFor(content, allowDiscussion):
         """ Override discussability for the given object or clear the setting.
 
@@ -527,6 +555,8 @@
     """ Decorate user objects with site-local data.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The tool's ID.
 
@@ -615,6 +645,8 @@
     """ MemberData interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def setProperties(properties=None, **kw):
         """ Allow the authenticated member to update his/her member data.
 
@@ -633,7 +665,9 @@
     """ Member interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 #
 #   Membership tool interfaces
 #
@@ -643,6 +677,8 @@
         their member folders.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The tool's ID.
 
@@ -913,6 +949,8 @@
     """ CMF metadata policies interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The tool's ID.
 
@@ -999,7 +1037,7 @@
         """ Return a list of (id, schema) tuples enumerating our schema.
         """
 
-    def addSchema( schema_id ):
+    def addSchema(schema_id):
         """ Create a new schema with the given ID.
 
         o Return the newly-created schema object.
@@ -1007,7 +1045,7 @@
         o Raise KeyError if such a schema already exists.
         """
 
-    def removeSchema( schema_id ):
+    def removeSchema(schema_id):
         """ Remove an existing schema with the given ID.
 
         o Raise KeyError if no such schema exists.
@@ -1041,6 +1079,8 @@
     """ Manage properties of the site as a whole.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The tool's ID.
 
@@ -1079,6 +1119,8 @@
     o Is not aware of membership storage details.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1183,11 +1225,16 @@
     """ Directory views mount filesystem directories.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 class ISkinsContainer(Interface):
 
     """ An object that provides skins.
     """
+
+    __module__ = 'Products.CMFCore.interfaces'
+
     def getSkinPath(name):
         """ Convert a skin name to a skin path.
 
@@ -1236,6 +1283,8 @@
     O XXX:  This shouldn't derive from ISkinsContainer?
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1260,6 +1309,8 @@
     """ An object that provides content syndication facilities
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1390,6 +1441,8 @@
 class ISyndicationInfo(Interface):
     """ Provides syndication about a particular object"""
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     enabled = Attribute(
         """
         :`bool`
@@ -1451,6 +1504,8 @@
     """ Type definition interface.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def Metatype():
         """ Return the Zope 'meta_type' for this content object.
 
@@ -1540,6 +1595,8 @@
     """ Register content types for the site.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1608,6 +1665,8 @@
     """ Provide access to Zope undo functions.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1651,6 +1710,8 @@
     that root.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1733,6 +1794,8 @@
     """This tool accesses and changes the workflow state of content.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     id = Attribute('id',
             """ The ID of the tool.
 
@@ -1886,6 +1949,8 @@
     """ Manage workflow tool settings.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def setDefaultChain(default_chain):
         """ Set the default chain for this tool.
 
@@ -1927,6 +1992,8 @@
     """Plugin interface for workflow definitions managed by IWorkflowTool.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def getId():
         """ Return the id of the workflow definition.
         """
@@ -2104,6 +2171,8 @@
 
 class IWorkflowStatus(Interface):
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def get():
         """Return the current workflow status or None
         """
@@ -2117,7 +2186,9 @@
     """A sequence of workflow status dictionaries
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
 
+
 class ILinebreakNormalizer(Interface):
 
     """ Interface for a utility to normalize line breaks in plain text
@@ -2126,6 +2197,8 @@
     any desired type, such as LF or CRLF.
     """
 
+    __module__ = 'Products.CMFCore.interfaces'
+
     def normalizeIncoming(ob, text):
         """ Normalize line breaks in text pushed into the system
 



More information about the checkins mailing list