[Zope3-checkins] CVS: Zope3/src/zope/app/browser - absoluteurl.py:1.1.2.3 gadflyda.py:1.1.2.2 objectname.py:1.1.2.3
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:41 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/browser
Modified Files:
Tag: NameGeddon-branch
absoluteurl.py gadflyda.py objectname.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/browser/absoluteurl.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/absoluteurl.py:1.1.2.2 Mon Dec 23 18:52:28 2002
+++ Zope3/src/zope/app/browser/absoluteurl.py Tue Dec 24 21:20:10 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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
-#
+#
##############################################################################
"""
@@ -31,7 +31,7 @@
def __repr__():
"""Get a string representation
"""
-
+
def __call__():
"""Get a string representation
"""
@@ -86,7 +86,7 @@
base = getView(container, 'absolute_url', self.request).breadcrumbs()
base += ({'name': name, 'url': ("%s/%s" % (base[-1]['url'], name))}, )
return base
-
+
class SiteAbsoluteURL(BrowserView):
@@ -101,7 +101,7 @@
container = getWrapperContainer(context)
return "%s/%s" % (getView(container, 'absolute_url', self.request),
name)
-
+
return self.request.getApplicationURL()
__call__ = __str__
@@ -126,8 +126,3 @@
return base
return ({'name':'', 'url': self.request.getApplicationURL()}, )
-
-
-
-
-
=== Zope3/src/zope/app/browser/gadflyda.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/gadflyda.py:1.1.2.1 Mon Dec 23 14:30:58 2002
+++ Zope3/src/zope/app/browser/gadflyda.py Tue Dec 24 21:20:10 2002
@@ -23,4 +23,3 @@
# This needs to be overridden by the actual implementation
_adapter_factory_id = "GadflyDA"
-
=== Zope3/src/zope/app/browser/objectname.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/objectname.py:1.1.2.2 Mon Dec 23 18:52:28 2002
+++ Zope3/src/zope/app/browser/objectname.py Tue Dec 24 21:20:10 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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
-#
+#
##############################################################################
"""
@@ -26,7 +26,7 @@
class ObjectNameView(ObjectName):
__implements__ = IBrowserView, IObjectName
-
+
def __init__(self, context, request):
self.context = context
@@ -34,6 +34,6 @@
class SiteObjectNameView(SiteObjectName):
__implements__ = IBrowserView, IObjectName
-
+
def __init__(self, context, request):
pass