#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:2 pjenvey]:
> What is beaker.session.sha1 in this environment? It should be the sha
module on Python 2.4, which should work with hmac.new. The sha module
should have a new function
>
In my case:
Module: beaker.session file: /usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py
These are the last lines of the traceback:
File '/usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', line 481 in __repr__
return self._session().__repr__()
File '/usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', line 458 in _session
self.__dict__['_sess'] = Session(req, use_cookies=True,
File '/usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', line 86 in __init__
self.cookie = SignedCookie(secret, input=cookieheader)
File '/usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', line 36 in __init__
Cookie.BaseCookie.__init__(self, input)
File '/usr/lib64/python2.4/Cookie.py', line 568 in __init__
if input: self.load(input)
File '/usr/lib64/python2.4/Cookie.py', line 621 in load
self.__ParseString(rawdata)
File '/usr/lib64/python2.4/Cookie.py', line 651 in __ParseString
rval, cval = self.value_decode(V)
File '/usr/local/tg2/lib/python2.4/site-
packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', line 40 in
value_decode
sig = hmac.new(self.secret, val[40:], sha1).hexdigest()
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'
-- MV
--
Ticket URL: <http://trac.turbogears.org/ticket/2133#comment:7>
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
-~----------~----~----~----~------~----~------~--~---