#2133: AttributeError in beaker in tg2.0b2 python2.4
------------------------+---------------------------------------------------
 Reporter:  lszyba1     |        Owner:  faide   
     Type:  defect      |       Status:  reopened
 Priority:  normal      |    Milestone:  2.0rc1  
Component:  TurboGears  |      Version:  trunk   
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by pjenvey):

 The 2.5 hmac doesn't have many changes from 2.4s (it's really just tweaked
 to support hashlib). I'd try monkey patching it, you might get lucky.
 Bring the 2.5 hmac module into your app, and then as early as possible in
 your app's initialization do:

 {{{
 import hmac
 from myapp.lib.hmac25 import HMAC as HMAC25
 hmac.HMAC = HMAC25
 }}}

 If this works you may want to suggest to the author of the Pypi hashlib
 that his hashlib do this monkey patching for you, or at least suggest it
 in his documentation

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