Roundup Tracker - Issues

Message6386

Author rouilj
Recipients rouilj
Date 2019-03-13.00:01:40
Message-id <1552435300.54.0.51169483528.issue2551030@roundup.psfhosted.org>
In-reply-to
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.
History
Date User Action Args
2019-03-13 00:01:40rouiljsetrecipients: + rouilj
2019-03-13 00:01:40rouiljsetmessageid: <1552435300.54.0.51169483528.issue2551030@roundup.psfhosted.org>
2019-03-13 00:01:40rouiljlinkissue2551030 messages
2019-03-13 00:01:40rouiljcreate