summaryrefslogtreecommitdiff
path: root/src/jwebmail/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail/__init__.py')
-rw-r--r--src/jwebmail/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index 995fb0b..7a165e0 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -1,6 +1,7 @@
import os.path as os_path
import pwd
import sys
+from datetime import datetime
from os import environ
from babel import parse_locale
@@ -14,7 +15,6 @@ from werkzeug.middleware.proxy_fix import ProxyFix
from .css import compile_css_command
from .read_mails import load_user
from .render_mail import format_mail
-from .view import add_view_funcs
from .webmail import (
about,
displayheaders,
@@ -81,7 +81,6 @@ def create_app():
login_manager.user_loader(load_user)
login_manager.init_app(app)
- add_view_funcs(app)
route(app)
@app.context_processor
@@ -90,6 +89,7 @@ def create_app():
"version": __version__,
"get_locale": get_locale,
"format_mail": format_mail,
+ "parse_iso_date": datetime.fromisoformat,
}
@app.url_defaults