diff src/server/pages.py @ 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 63ed5f6bd4eb
children 045e8bdaed4f
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)