#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  |  
-------------------------+--------------------------------------------------
Changes (by chrisz):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 I'm reopening this because I consider it very important - my users really
 want localized error messages.

 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 '')
 }}}

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