[Erp5-report] r24161 - /erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 13 15:33:02 CEST 2008


Author: ivan
Date: Mon Oct 13 15:32:59 2008
New Revision: 24161

URL: http://svn.erp5.org?rev=24161&view=rev
Log:
Send browser cookies for local ERP5 instance.

Modified:
    erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py

Modified: erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py?rev=24161&r1=24160&r2=24161&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py (original)
+++ erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py Mon Oct 13 15:32:59 2008
@@ -336,8 +336,10 @@
     for cookie in cookiejar:
       # unconditionally send all cookies (no matter if expired or not) as URL is always the same
       header_dict['Cookie']  +=  '%s=%s;' %(cookie.name, cookie.value)
-    # XXX: include cookies from local browser (like show/hide tabs) which are set directly
+    #  include cookies from local browser (like show/hide tabs) which are set directly
     # by client JavaScript code (i.e. not sent from server)
+    for cookie_name, cookie_value in self.REQUEST.cookies.items():
+      header_dict['Cookie']  +=  '%s=%s;' %(cookie_name, cookie_value)
 
     # add HTTP referer (especially useful in Localizer when changing language)
     header_dict['REFERER'] = self.REQUEST.get('HTTP_REFERER', None) or referer




More information about the Erp5-report mailing list