SVN: Zope/trunk/src/OFS/Traversable.py remove testing code

Nikolay Kim <[email protected]>
Newsgroups gmane.comp.web.zope.cvs
Message-ID <20110615153759.B0BD6941F1__6870.31479687921$1308152291$gmane$org@cvs.zope.org>
Log message for revision 121950:
  remove testing code

Changed:
  U   Zope/trunk/src/OFS/Traversable.py

-=-
Modified: Zope/trunk/src/OFS/Traversable.py
===================================================================
--- Zope/trunk/src/OFS/Traversable.py	2011-06-15 14:12:27 UTC (rev 121949)
+++ Zope/trunk/src/OFS/Traversable.py	2011-06-15 15:37:59 UTC (rev 121950)
@@ -124,38 +124,6 @@
 
         return path
 
-        try:
-            path = [self.id]
-        except:
-            path = [self.getId()]
-
-        func = self.getPhysicalPath.im_func
-
-        try:
-            p = self.aq_inner.aq_parent
-        except:
-            p = aq_parent(aq_inner(self))
-
-        while p is not None:
-            if func is not p.getPhysicalPath.im_func:
-                if IApplication.providedBy(p):
-                    path.insert(0, '')
-                    path = tuple(path)
-                else:
-                    path = p.getPhysicalPath() + tuple(path)
-                break
-            else:
-                try:
-                    path.insert(0, p.id)
-                except:
-                    path.insert(0, p.getId())
-                try:
-                    p = p.aq_parent
-                except:
-                    p = None
-                
-        return path
-
     security.declarePrivate('unrestrictedTraverse')
     def unrestrictedTraverse(self, path, default=_marker, restricted=False):
         """Lookup an object by path.

_______________________________________________
Zope-Checkins maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.