[CMF-checkins] SVN: CMF/branches/tseaver-viewification/CMFDefault/ - More elements for the Link viewification

Jens Vagelpohl jens at dataflake.org
Sat Oct 22 11:29:25 EDT 2005


Log message for revision 39559:
  - More elements for the Link viewification
  

Changed:
  U   CMF/branches/tseaver-viewification/CMFDefault/Link.py
  A   CMF/branches/tseaver-viewification/CMFDefault/interfaces/Link.py
  U   CMF/branches/tseaver-viewification/CMFDefault/interfaces/__init__.py

-=-
Modified: CMF/branches/tseaver-viewification/CMFDefault/Link.py
===================================================================
--- CMF/branches/tseaver-viewification/CMFDefault/Link.py	2005-10-22 15:28:39 UTC (rev 39558)
+++ CMF/branches/tseaver-viewification/CMFDefault/Link.py	2005-10-22 15:29:25 UTC (rev 39559)
@@ -21,13 +21,19 @@
 from Globals import DTMLFile
 from Globals import InitializeClass
 import transaction
+from zope.interface import implements
 
+from Products.CMFCore.interfaces import IMutableDublinCore
 from Products.CMFCore.PortalContent import PortalContent
 from Products.CMFCore.utils import contributorsplitter
 from Products.CMFCore.utils import keywordsplitter
 
 from DublinCore import DefaultDublinCoreImpl
 from exceptions import ResourceLockedError
+from interfaces import ILink
+from interfaces import IMutableLink
+from interfaces.Link import ILink as z2ILink
+from interfaces.Link import IMutableLink as z2IMutableLink
 from permissions import ModifyPortalContent
 from permissions import View
 from utils import _dtmldir
@@ -86,7 +92,10 @@
         A Link
     """
 
-    __implements__ = ( PortalContent.__implements__
+    implements(ILink, IMutableLink, IMutableDublinCore)
+    __implements__ = ( z2ILink
+                     , z2IMutableLink
+                     , PortalContent.__implements__
                      , DefaultDublinCoreImpl.__implements__
                      )
 

Added: CMF/branches/tseaver-viewification/CMFDefault/interfaces/Link.py
===================================================================
--- CMF/branches/tseaver-viewification/CMFDefault/interfaces/Link.py	2005-10-22 15:28:39 UTC (rev 39558)
+++ CMF/branches/tseaver-viewification/CMFDefault/interfaces/Link.py	2005-10-22 15:29:25 UTC (rev 39559)
@@ -0,0 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+""" Link content type interfaces.
+
+$Id: Link.py 38590 2005-09-24 15:24:32Z yuppie $
+"""
+
+# BBB: module will be removed in CMF 2.2
+#      zope2 interfaces created on runtime:
+#      - ILink


Property changes on: CMF/branches/tseaver-viewification/CMFDefault/interfaces/Link.py
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: CMF/branches/tseaver-viewification/CMFDefault/interfaces/__init__.py
===================================================================
--- CMF/branches/tseaver-viewification/CMFDefault/interfaces/__init__.py	2005-10-22 15:28:39 UTC (rev 39558)
+++ CMF/branches/tseaver-viewification/CMFDefault/interfaces/__init__.py	2005-10-22 15:29:25 UTC (rev 39559)
@@ -22,10 +22,13 @@
 #      create zope2 interfaces
 from Interface.bridge import createZope3Bridge
 import Document
+import Link
 import portal_membership
 
 createZope3Bridge(IDocument, Document, 'IDocument')
 createZope3Bridge(IMutableDocument, Document, 'IMutableDocument')
+createZope3Bridge(ILink, Link, 'ILink')
+createZope3Bridge(IMutableLink, Link, 'IMutableLink')
 createZope3Bridge(IMembershipTool, portal_membership, 'portal_membership')
 
 del createZope3Bridge



More information about the CMF-checkins mailing list