From 7dc7f4a406d33461e964aac600eeb2aa841d1f88 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Sat, 1 Jan 2011 20:56:31 +0000
Subject: [PATCH] only get_header exists in Zope-2.8, whereas only getHeader
 exists in Zope-2.12.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41922 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Security/ERP5ExternalAuthenticationPlugin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Security/ERP5ExternalAuthenticationPlugin.py b/product/ERP5Security/ERP5ExternalAuthenticationPlugin.py
index 2d8ff5049d..6ad0ccf919 100644
--- a/product/ERP5Security/ERP5ExternalAuthenticationPlugin.py
+++ b/product/ERP5Security/ERP5ExternalAuthenticationPlugin.py
@@ -102,7 +102,7 @@ class ERP5ExternalAuthenticationPlugin(ERP5UserManager):
   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
 
-- 
2.30.9