#2133: AttributeError in beaker in tg2.0b2 python2.4
------------------------+---------------------------------------------------
Reporter: lszyba1 | Owner: faide
Type: defect | Status: reopened
Priority: high | Milestone: 2.0b5
Component: TurboGears | Version: trunk
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by mvalente):
Replying to [comment:8 pjenvey]:
> I'd also like to know what beaker.session.sha1 is in this environment,
i.e. show me the output of something like:
>
(tg2)[r...@localhost wiki20]# python
Python 2.4.4 (#1, Oct 23 2006, 13:58:18)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.get_distribution('Beaker').version
'1.1.3'
>>> import beaker.session
>>> beaker.session.sha1
<built-in function new>
>>> import hmac
>>> hmac.new('test', 'test',beaker.session.sha1).hexdigest()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.4/hmac.py", line 107, in new
return HMAC(key, msg, digestmod)
File "/usr/lib64/python2.4/hmac.py", line 42, in __init__
self.outer = digestmod.new()
AttributeError: 'builtin_function_or_method' object has no attribute 'new'
>>>
--
Ticket URL: <http://trac.turbogears.org/ticket/2133#comment:9>
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
-~----------~----~----~----~------~----~------~--~---