[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/browser -
absoluteurl.py:1.2 tests.py:1.2
Philipp von Weitershausen
philikon at philikon.de
Mon May 10 02:35:42 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/traversing/browser
In directory cvs.zope.org:/tmp/cvs-serv4430/traversing/browser
Modified Files:
absoluteurl.py tests.py
Log Message:
Whitespace cleanup
=== Zope3/src/zope/app/traversing/browser/absoluteurl.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/traversing/browser/absoluteurl.py:1.1 Tue Apr 27 06:53:49 2004
+++ Zope3/src/zope/app/traversing/browser/absoluteurl.py Mon May 10 02:35:42 2004
@@ -28,7 +28,6 @@
"This is probably due to a bug in setting up location "
"information.")
-
def absoluteURL(ob, request):
return str(getViewProviding(ob, IAbsoluteURL, request))
@@ -39,7 +38,6 @@
context = self.context
request = self.request
-
# The application URL contains all the namespaces that are at the
# beginning of the URL, such as skins, virtual host specifications and
# so on.
@@ -51,7 +49,6 @@
raise TypeError, _insufficientContext
url = str(getView(container, 'absolute_url', request))
-
name = getattr(context, '__name__', None)
if name is None:
raise TypeError, _insufficientContext
@@ -100,7 +97,6 @@
return request.getApplicationURL()
url = request.getApplicationURL()
-
name = getattr(context, '__name__', None)
if name:
url += '/'+name
=== Zope3/src/zope/app/traversing/browser/tests.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/traversing/browser/tests.py:1.1 Tue Apr 27 06:53:55 2004
+++ Zope3/src/zope/app/traversing/browser/tests.py Mon May 10 02:35:42 2004
@@ -28,9 +28,8 @@
from zope.publisher.browser import TestRequest
from zope.publisher.http import IHTTPRequest, HTTPCharsets
-
-
-class IRoot(Interface): pass
+class IRoot(Interface):
+ pass
class Root:
implements(IRoot)
More information about the Zope3-Checkins
mailing list