[Checkins] SVN: Products.CMFCore/branches/cookiecrumbler_with_views/Products/CMFCore/CookieCrumbler.py - removed obsolete class attributes

Yvo Schubbe y.2010 at wcm-solutions.de
Mon Apr 26 09:53:41 EDT 2010


Log message for revision 111428:
  - removed obsolete class attributes
  - don't check if logout page exists before setting _logout_path

Changed:
  U   Products.CMFCore/branches/cookiecrumbler_with_views/Products/CMFCore/CookieCrumbler.py

-=-
Modified: Products.CMFCore/branches/cookiecrumbler_with_views/Products/CMFCore/CookieCrumbler.py
===================================================================
--- Products.CMFCore/branches/cookiecrumbler_with_views/Products/CMFCore/CookieCrumbler.py	2010-04-26 12:52:13 UTC (rev 111427)
+++ Products.CMFCore/branches/cookiecrumbler_with_views/Products/CMFCore/CookieCrumbler.py	2010-04-26 13:53:41 UTC (rev 111428)
@@ -98,11 +98,6 @@
     local_cookie_path = False
     cache_header_value = 'private'
     log_username = True
-    # the following properties are deprecated and will be replaced by
-    # user actions
-    auto_login_page = 'login_form'
-    unauth_page = ''
-    logout_page = 'logged_out'
 
     security.declarePrivate('delRequestVar')
     def delRequestVar(self, req, name):
@@ -263,12 +258,9 @@
                 resp.setHeader('X-Cache-Control-Hdr-Modified-By',
                                'CookieCrumbler')
             phys_path = self.getPhysicalPath()
-            if self.logout_page:
-                # Cookies are in use.
-                page = getattr(container, self.logout_page, None)
-                if page is not None:
-                    # Provide a logout page.
-                    req._logout_path = phys_path + ('logout',)
+            # Cookies are in use.
+            # Provide a logout page.
+            req._logout_path = phys_path + ('logout',)
             req._credentials_changed_path = (
                 phys_path + ('credentialsChanged',))
 



More information about the checkins mailing list