changeset 1109:3a7b2b239d3e

pages: change module for date_parse, following backend change
author Goffi <goffi@goffi.org>
date Thu, 21 Jun 2018 01:19:42 +0200
parents 7ec1ba86d38d
children 045e8bdaed4f
files src/server/pages.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/pages.py	Mon Jun 04 11:52:19 2018 +0200
+++ b/src/server/pages.py	Thu Jun 21 01:19:42 2018 +0200
@@ -26,7 +26,7 @@
 from sat.core.i18n import _
 from sat.core import exceptions
 from sat.tools.common import uri as common_uri
-from sat.tools import utils
+from sat.tools.common import date_utils
 from sat.core.log import getLogger
 log = getLogger(__name__)
 from libervia.server.constants import Const as C
@@ -668,7 +668,7 @@
         else:
             modified_match = request.getHeader('If-Modified-Since')
             if modified_match is not None:
-                modified = utils.date_parse(modified_match)
+                modified = date_utils.date_parse(modified_match)
                 if modified >= int(cache.created):
                     self.pageError(request, C.HTTP_NOT_MODIFIED, no_body=True)