[Zope3-checkins] SVN: Zope3/trunk/ Moved IBroken to zope.app.broken.interfaces to avoid cyclic imports

Baiju M baiju.m.mail at gmail.com
Wed Feb 21 00:02:35 EST 2007


Log message for revision 72735:
  Moved IBroken to zope.app.broken.interfaces to avoid cyclic imports
  ref: http://mail.zope.org/pipermail/zope3-dev/2007-February/021785.html
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/broken/broken.py
  A   Zope3/trunk/src/zope/app/broken/interfaces.py
  U   Zope3/trunk/src/zope/app/container/contained.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2007-02-20 22:10:54 UTC (rev 72734)
+++ Zope3/trunk/doc/CHANGES.txt	2007-02-21 05:02:33 UTC (rev 72735)
@@ -104,6 +104,8 @@
 
     Restructuring
 
+      - Moved IBroken to zope.app.broken.interfaces to avoid cyclic imports.
+
       - Added test layers for all existing functional tests.
 
       - Updated the version of Twisted to 2.5

Modified: Zope3/trunk/src/zope/app/broken/broken.py
===================================================================
--- Zope3/trunk/src/zope/app/broken/broken.py	2007-02-20 22:10:54 UTC (rev 72734)
+++ Zope3/trunk/src/zope/app/broken/broken.py	2007-02-21 05:02:33 UTC (rev 72735)
@@ -21,13 +21,9 @@
 import zope.interface
 import zope.location.interfaces
 import zope.security.checker
-
+from zope.app.broken.interfaces import IBroken
 from zope.annotation.interfaces import IAnnotations
 
-class IBroken(zope.interface.Interface):
-    """Marker interface for broken objects
-    """
-
 class Broken(ZODB.broken.Broken):
     zope.interface.implements(
         IBroken,

Added: Zope3/trunk/src/zope/app/broken/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/broken/interfaces.py	2007-02-20 22:10:54 UTC (rev 72734)
+++ Zope3/trunk/src/zope/app/broken/interfaces.py	2007-02-21 05:02:33 UTC (rev 72735)
@@ -0,0 +1,25 @@
+##############################################################################
+#
+# Copyright (c) 2007 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.
+#
+##############################################################################
+"""zope.app.broken interfaces.
+
+$Id$
+"""
+
+__docformat__ = "reStructuredText"
+
+import zope.interface
+
+class IBroken(zope.interface.Interface):
+    """Marker interface for broken objects
+    """


Property changes on: Zope3/trunk/src/zope/app/broken/interfaces.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Modified: Zope3/trunk/src/zope/app/container/contained.py
===================================================================
--- Zope3/trunk/src/zope/app/container/contained.py	2007-02-20 22:10:54 UTC (rev 72734)
+++ Zope3/trunk/src/zope/app/container/contained.py	2007-02-21 05:02:33 UTC (rev 72735)
@@ -38,7 +38,7 @@
 from zope.app.container.interfaces import IContainerModifiedEvent
 from zope.app.container._zope_app_container_contained import ContainedProxyBase
 from zope.app.container._zope_app_container_contained import getProxiedObject
-from zope.app.broken.broken import IBroken
+from zope.app.broken.interfaces import IBroken
 
 class Contained(object):
     """Stupid mix-in that defines `__parent__` and `__name__` attributes"""



More information about the Zope3-Checkins mailing list