Commit 59c2a4b7 authored by Aurel's avatar Aurel

update how to get days of week from DateTime

parent 1db7bbfe
...@@ -227,6 +227,10 @@ class PeriodicityMixin: ...@@ -227,6 +227,10 @@ class PeriodicityMixin:
""" """
returns something like ['Sunday','Monday',...] returns something like ['Sunday','Monday',...]
""" """
try:
from DateTime.DateTime import _DAYS
return _DAYS
except ImportError: # BBB DateTime 2.12
return DateTime._days return DateTime._days
security.declareProtected(Permissions.AccessContentsInformation, 'getWeekDayItemList') security.declareProtected(Permissions.AccessContentsInformation, 'getWeekDayItemList')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment