#2120: TG 2.0 b1 quickstarted project does not work on Python 2.4
------------------------+---------------------------------------------------
Reporter: alevinsn | Owner: faide
Type: defect | Status: new
Priority: high | Milestone: 2.0b2
Component: TurboGears | Version: trunk
Severity: major | Keywords:
------------------------+---------------------------------------------------
A quickstarted project created with Turbogears 2.0 Beta 1 does not work
without changes on Python 2.4. The problem stems from the use of the
hashlib python module in <project>/model/auth.py:
{{{
from hashlib import sha1
}}}
hashlib only exists starting in Python 2.5. The "fix" is to comment out
this line. hashlib.sha1 is only used for the "salted_sha1" password
encryption method, which is also the default. Instead, the "sha1"
password encryption method can be used with Python 2.4. To change the
default, it is also necessary to modify <project>/config/app_cfg.py:
{{{
base_config.sa_auth.password_encryption_method = "salted_sha1"
}}}
becomes
{{{
base_config.sa_auth.password_encryption_method = "sha1"
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2120>
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
-~----------~----~----~----~------~----~------~--~---