[Zope-CVS] CVS: Products/PluggableAuthService -
PluggableAuthService.py:1.16
Lennart Regebro
regebro at nuxeo.com
Fri Oct 1 08:27:00 EDT 2004
Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv20658
Modified Files:
PluggableAuthService.py
Log Message:
Override _unauthorized, to get rid of the default WWW-Authenticate headers.
=== Products/PluggableAuthService/PluggableAuthService.py 1.15 => 1.16 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.15 Fri Sep 24 12:40:47 2004
+++ Products/PluggableAuthService/PluggableAuthService.py Fri Oct 1 08:27:00 2004
@@ -1090,11 +1090,15 @@
""" The __before_publishing_traverse__ hook. """
resp = req['RESPONSE']
resp.exception = self.exception
+ resp._unauthorized = self._unauthorized
return
#
# Response overrides
#
+ def _unauthorized(self):
+ pass
+
def exception(self, fatal=0, info=None,
absuri_match=re.compile(r'\w+://[\w\.]+').match,
tag_search=re.compile('[a-zA-Z]>').search,
@@ -1103,6 +1107,8 @@
req = self.REQUEST
resp = req['RESPONSE']
try: del resp.exception
+ except: pass
+ try: del resp._unauthorized
except: pass
if type(info) is type(()) and len(info) == 3:
More information about the Zope-CVS
mailing list