[Zope-CVS] CVS: Products/CookieCrumbler - CookieCrumbler.py:1.8

Chris McDonough chrism@zope.com
Fri, 24 May 2002 12:16:00 -0400


Update of /cvs-repository/Products/CookieCrumbler
In directory cvs.zope.org:/tmp/cvs-serv5634

Modified Files:
	CookieCrumbler.py 
Log Message:
Whoops, took out bogus debug logging.


=== Products/CookieCrumbler/CookieCrumbler.py 1.7 => 1.8 ===
 import Globals
 from Globals import HTMLFile
-from zLOG import LOG, ERROR, BLATHER
+from zLOG import LOG, ERROR
 from App.Common import package_home
 from ZPublisher.HTTPRequest import HTTPRequest
 from OFS.DTMLMethod import addDTMLMethod
@@ -251,34 +251,24 @@
 
     def __call__(self, container, req):
         '''The __before_publishing_traverse__ hook.'''
-        LOG('CookieCrumbler', BLATHER, '__call__: invoked')
         resp = self.REQUEST['RESPONSE']
         attempt = self.modifyRequest(req, resp)
         if attempt == ATTEMPT_DISABLED:
-            LOG('CookieCrumbler', BLATHER,
-                '__call__: attempt == ATTEMPT_DISABLED')
             return
         if not req.get('disable_cookie_login__', 0):
-            LOG('CookieCrumbler', BLATHER,
-                '__call__: not req.get("disable_cookie_login__")')
             if (self.redir_always or
                 attempt == ATTEMPT_LOGIN or attempt == ATTEMPT_NONE):
-                LOG('CookieCrumbler', BLATHER, ('__call__: '
-                    'self.redir_always or attempt == ATTEMPT_LOGIN or attempt '
-                    '== ATTEMPT_NONE'))
                 # Modify the "unauthorized" response.
                 req._hold(ResponseCleanup(resp))
                 resp.unauthorized = self.unauthorized
                 resp._unauthorized = self._unauthorized
         if attempt != ATTEMPT_NONE:
-            LOG('CookieCrumbler',BLATHER,('__call__: attempt != ATTEMPT_NONE'))
             # we don't want caches to cache the resulting page
             resp.setHeader('Cache-Control', 'no-cache')
             # demystify this in the response.
             resp.setHeader('X-Cache-Control-Hdr-Modified-By', 'CookieCrumbler')
             phys_path = self.getPhysicalPath()
             if self.logout_page:
-                LOG('CookieCrumbler',BLATHER,('__call__: self.logout_page'))
                 # Cookies are in use.
                 page = getattr(container, self.logout_page, None)
                 if page is not None: