[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/TraversalViews - AbsoluteURL.py:1.5.6.3
Jim Fulton
jim@zope.com
Wed, 13 Nov 2002 15:23:58 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/TraversalViews
In directory cvs.zope.org:/tmp/cvs-serv568/lib/python/Zope/App/ZopePublication/TraversalViews
Modified Files:
Tag: Zope3-Bangalore-TTW-Branch
AbsoluteURL.py
Log Message:
fixed DOS line endings
=== Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/AbsoluteURL.py 1.5.6.2 => 1.5.6.3 ===
--- Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/AbsoluteURL.py:1.5.6.2 Tue Oct 29 07:30:17 2002
+++ Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/AbsoluteURL.py Wed Nov 13 15:23:27 2002
@@ -54,15 +54,15 @@
__call__ = __str__
def breadcrumbs(self):
- context = self.context
+ context = self.context
dict = getInnerWrapperData(context)
name = dict and dict.get('name') or None
- container = getWrapperContainer(context)
- base =()
+ container = getWrapperContainer(context)
+ base =()
if name is None or container is None:
raise TypeError, 'Not enough context information to get a URL'
- if name == '.':
+ if name == '.':
# The name is meaningless. There is a side-efect name
# that we need to preserve in the urls (only)
name = dict.get('side_effect_name', name)
@@ -75,10 +75,10 @@
'name': base[-1]['name'],
'url': ("%s/%s" % (base[-1]['url'], name)),
}, )
- return base
-
- base = getView(container, 'absolute_url', self.request).breadcrumbs()
- base += ({'name': name, 'url': ("%s/%s" % (base[-1]['url'], name))}, )
+ return base
+
+ base = getView(container, 'absolute_url', self.request).breadcrumbs()
+ base += ({'name': name, 'url': ("%s/%s" % (base[-1]['url'], name))}, )
return base
@@ -101,7 +101,7 @@
__call__ = __str__
def breadcrumbs(self):
- context = self.context
+ context = self.context
dict = getInnerWrapperData(context)
name = dict and dict.get('name') or None
if name: