Message6386
When running roundup, the Olson timezone database (pytz) is supposed to
be optional. However the configuration.py file uses:
(TimezoneOption, "timezone", "UTC", "Default timezone offset,"
" applied when user's timezone is not set.",
["DEFAULT_TIMEZONE"]),
in ths
SETTINGS = (
("main", (
tuple definition. This raises an exception when trying to parse UTC
if pytz is not installed. I think the fix it to set a variable
for the setting:
try:
import pytz
timezone= (TimezoneOption, "timezone", "UTC",
"Default timezone offset,"
" applied when user's timezone is not set.",
["DEFAULT_TIMEZONE"])
except ImportError:
timezone = (TimezoneOption, "timezone", "0",
"Default timezone offset,"
" applied when user's timezone is not set.",
["DEFAULT_TIMEZONE"])
then replace the entry in the tuple with timezone. I think this would
work, but I am not sure. |
|
Date |
User |
Action |
Args |
2019-03-13 00:01:40 | rouilj | set | recipients:
+ rouilj |
2019-03-13 00:01:40 | rouilj | set | messageid: <1552435300.54.0.51169483528.issue2551030@roundup.psfhosted.org> |
2019-03-13 00:01:40 | rouilj | link | issue2551030 messages |
2019-03-13 00:01:40 | rouilj | create | |
|