#2475: Activate session_filter makes the quickstarted test_controllers tests
fails
------------------------+---------------------------------------------------
Reporter: cdevienne | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.1.1
Component: TurboGears | Version: 1.1 HEAD
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by cdevienne):
The original problem probably comes from the !BaseCookie.output function
which changed its default separator in python 2.5 :
http://docs.python.org/library/cookie.html#Cookie.BaseCookie.output
I guess we should do a bug report to !CherryPy since it can be considered
as a python 2.5 regression, but can we really expect a bugfix release ?
In addition, here is a dirty monkey path that workaround this issue by
reverting !SimpleCookie.output to the python<2.5 behavior :
{{{
#!python
import Cookie
def output(self, attrs=None, header='Set-Cookie:', sep='\n'):
return self._orig_output(attrs, header, sep)
Cookie.SimpleCookie._orig_output = Cookie.SimpleCookie.output
Cookie.SimpleCookie.output = output
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2475#comment:5>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en