Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1147 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] KID pulls in i18n locale even when request is unavailable.

Reported by: mbevan Owned by: anonymous
Priority: normal Milestone: 1.0b2
Component: unassigned Version: 1.0b1
Severity: normal Keywords:
Cc:

Description

As per my  discussion forum message, TurboMail? calls KID to transform a template outside of any requests (in a seperate thread), which dies if sessions are enabled as it attempts to get the current locale from the session.

Ticket #485 is similar, but was triggered by the widget subsystem and had a different fix.

Attachments

turbogears-i18n.patch Download (870 bytes) - added by mbevan 13 years ago.
Adds a check in i18n/util.py:_get_locale for an active request.

Change History

Changed 13 years ago by mbevan

Adds a check in i18n/util.py:_get_locale for an active request.

comment:1 Changed 13 years ago by mbevan

  • Summary changed from KID pulls in i18n locale even when request is unavailable. to [PATCH] KID pulls in i18n locale even when request is unavailable.

comment:2 Changed 13 years ago by splee

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by [1960] and [1961]

Note: See TracTickets for help on using tickets.