[Zope3-checkins] CVS: Zope3/src/zope/app/browser -
absoluteurl.py:1.14
Sidnei da Silva
sidnei at x3ng.com.br
Fri Aug 29 09:28:38 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv812
Modified Files:
absoluteurl.py
Log Message:
Rough try at fixing exceptions (namely Unauthorized) and breadcrumbs. This could potentially prevent login in some cases
=== Zope3/src/zope/app/browser/absoluteurl.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/browser/absoluteurl.py:1.13 Thu Aug 28 18:40:24 2003
+++ Zope3/src/zope/app/browser/absoluteurl.py Fri Aug 29 08:28:37 2003
@@ -65,7 +65,8 @@
if container is None:
raise TypeError, _insufficientContext
- if sameProxiedObjects(context, request.getVirtualHostRoot()):
+ if sameProxiedObjects(context, request.getVirtualHostRoot()) or \
+ isinstance(context, Exception):
return ({'name':'', 'url': self.request.getApplicationURL()}, )
base = zapi.getView(container, 'absolute_url', request).breadcrumbs()
More information about the Zope3-Checkins
mailing list