changeset 1503:632b4aa23c17

show the parsed mtime for the user to check
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sat, 26 Aug 2006 21:30:25 +0200
parents f5835c19203a
children 2c696c2326ba
files MoinMoin/action/fullsearch.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/fullsearch.py	Sat Aug 26 21:17:22 2006 +0200
+++ b/MoinMoin/action/fullsearch.py	Sat Aug 26 21:30:25 2006 +0200
@@ -9,6 +9,7 @@
 """
 
 import re, time
+from email.Utils import formatdate
 from MoinMoin.Page import Page
 from MoinMoin import wikiutil
 from MoinMoin.support.parsedatetime.parsedatetime import Calendar
@@ -85,10 +86,12 @@
 
             if mtime_parsed[1] == 0 and mtime_parsed[0] <= time.localtime():
                 mtime = time.mktime(mtime_parsed[0])
+                msg = _("(!) Only pages changed since '''%s''' are being "
+                        "displayed!") % formatdate(mtime, False)
             else:
-                msg = _('The modification date you entered was not recognized '
-                        'and is therefore not considered for the search '
-                        'results!')
+                msg = _('/!\\ The modification date you entered was not '
+                        'recognized and is therefore not considered for the '
+                        'search results!')
                 mtime = None
 
         word_re = re.compile(r'(\"[\w\s]+"|\w+)')