[TurboGears] #2469: Python2.4 issue when the uuid package is not installed

8 views
Skip to first unread message

TurboGears

unread,
Feb 23, 2010, 7:23:46 PM2/23/10
to turbogear...@googlegroups.com
#2469: Python2.4 issue when the uuid package is not installed
------------------------+---------------------------------------------------
Reporter: lmacken | Owner:
Type: defect | Status: new
Priority: normal | Milestone: __unclassified__
Component: TurboGears | Version: trunk
Severity: normal | Keywords:
------------------------+---------------------------------------------------
On python2.4 setups, without the uuid module, we resort to trying to
base64 encode the secret cookie, which fails:

{{{
Traceback (most recent call last):
File "/home/lmacken/geo/tg2env/bin/paster", line 7, in ?
sys.exit(
File "/home/lmacken/geo/tg2env/lib/python2.4/site-
packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 84, in
run
invoke(command, command_name, options, args[1:])
File "/home/lmacken/geo/tg2env/lib/python2.4/site-
packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 123,
in invoke
exit_code = runner.run(args)
File "/home/lmacken/geo/tg2env/lib/python2.4/site-
packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 218,
in run
result = self.command()
File "/home/lmacken/geo/tgdevtools-dev/devtools/commands/quickstart.py",
line 212, in command
self.cookiesecret =
base64.b64encode(base64(random.randrange(2**32))).strip()
TypeError: 'module' object is not callable
}}}

--
Ticket URL: <http://trac.turbogears.org/ticket/2469>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

Reply all
Reply to author
Forward
0 new messages