#2250: [PATCH] Repoze.what cannot handle non-ascii error messages
-------------------------+--------------------------------------------------
 Reporter:  chrisz       |        Owner:  Gustavo 
     Type:  defect       |       Status:  reopened
 Priority:  high         |    Milestone:  2.0rc1  
Component:  TurboGears   |      Version:  2.0b6   
 Severity:  major        |   Resolution:          
 Keywords:  repoze.what  |  
-------------------------+--------------------------------------------------
Comment (by Gustavo):

 Replying to [comment:3 chrisz]:
 > I'm reopening this because I consider it very important - my users
 really want localized error messages.

 Localized error messages are supported, the only problem is when they are
 logged in Py < 2.6.

 > So how about the following patch that should work with Py 2.4-2.6 (it
 does nothing with Py 2.6):
 >
 > {{{
 > class PredicateError(Exception):
 >     if not hasattr(Exception, '__unicode__'):
 >         def __unicode__(self):
 >             return unicode(self.args and self.args[0] or '')
 > }}}

 Yes, it does seem to work. I'll try to verify it and apply it today.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2250#comment:4>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to