import dateutil.tz
import pytz
+import acl
import bootstrap
import datetime_utils
import decorator_utils
from dateparse.dateparse_utilsLexer import dateparse_utilsLexer # type: ignore
from dateparse.dateparse_utilsListener import dateparse_utilsListener # type: ignore
from dateparse.dateparse_utilsParser import dateparse_utilsParser # type: ignore
-import simple_acl as acl
logger = logging.getLogger(__name__)
pass
-@decorator_utils.decorate_matching_methods_with(debug_parse,
- acl=acl.StringWildcardBasedACL(
- allowed_patterns=[
- 'enter*',
- 'exit*',
- ],
- denied_patterns=None,
- order_to_check_allow_deny=acl.ACL_ORDER_DENY_ALLOW,
- default_answer=False
- ))
+@decorator_utils.decorate_matching_methods_with(
+ debug_parse,
+ acl=acl.StringWildcardBasedACL(
+ allowed_patterns=[
+ 'enter*',
+ 'exit*',
+ ],
+ denied_patterns=None,
+ order_to_check_allow_deny=acl.ACL_ORDER_DENY_ALLOW,
+ default_answer=False
+ )
+)
class DateParser(dateparse_utilsListener):
PARSE_TYPE_SINGLE_DATE_EXPR = 1
PARSE_TYPE_BASE_AND_OFFSET_EXPR = 2