[Erp5-report] r41922 kazuhiko - /erp5/trunk/products/ERP5Security/

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Jan 1 21:56:31 CET 2011


Author: kazuhiko
Date: Sat Jan  1 21:56:31 2011
New Revision: 41922

URL: http://svn.erp5.org?rev=41922&view=rev
Log:
only get_header exists in Zope-2.8, whereas only getHeader exists in Zope-2.12.

Modified:
    erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py

Modified: erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py?rev=41922&r1=41921&r2=41922&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py [utf8] Sat Jan  1 21:56:31 2011
@@ -102,7 +102,7 @@ class ERP5ExternalAuthenticationPlugin(E
   def extractCredentials(self, request):
     """ Extract credentials from the request header. """
     creds = {}
-    user_id = request.getHeader(self.user_id_key)
+    user_id = getattr(request, 'getHeader', request.get_header)(self.user_id_key)
     if user_id is not None:
       creds['external_login'] = user_id
 



More information about the Erp5-report mailing list