[Zope3-checkins] CVS: Zope3/lib/python/Zope/Exceptions - ExceptionFormatter.py:1.5

Jim Fulton jim@zope.com
Thu, 1 Aug 2002 14:42:18 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Exceptions
In directory cvs.zope.org:/tmp/cvs-serv5741/lib/python/Zope/Exceptions

Modified Files:
	ExceptionFormatter.py 
Log Message:
Removed dependcies of:

  Zope.ComponentArchitecture
  Zope.Configuration
  Zope.Exceptions
  Zope.Testing

on other packages, especially App, in preparation for making these
packages part of Zope 2 and useful outside of the Zope application.

In particular, all placeful service support was moved to
Zope.App.ComponentArchitecture.  

Placeful service implementors should get the nextService and
nextServiceManager functions from
Zope.App.ComponentArchitecture.NextService. 




=== Zope3/lib/python/Zope/Exceptions/ExceptionFormatter.py 1.4 => 1.5 ===
                 revision = '???'
         return revision
 
-    def getObjectPath(self, o):
-        """Returns an informal path to an object.
-        """
-        try:
-            from Zope.ContextWrapper import wrapper
-        except ImportError:
-            # Not available.
-            return None
-
-        res = []
-        while o is not None:
-            d = wrapper.getdict(o)
-            if d:
-                name = d.get('name', None)
-                if name:
-                    res.append(name)
-            o = wrapper.getcontext(o)
-
-        res.reverse()
-        return res
-
     def formatSupplementLine(self, line):
         return '   - %s' % line