changeset 120:891c6d1551d4

fs19: create int MTIME values
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 13 Mar 2011 21:54:36 +0100
parents 2390e9f1d1dc
children 9b1f916249b8
files MoinMoin/storage/backends/fs19.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/fs19.py	Sun Mar 13 21:44:17 2011 +0100
+++ b/MoinMoin/storage/backends/fs19.py	Sun Mar 13 21:54:36 2011 +0100
@@ -509,7 +509,7 @@
         keys = (MTIME, '__rev', ACTION, NAME, ADDRESS, HOSTNAME, USERID, EXTRA, COMMENT)
         result = dict(zip(keys, fields))
         # do some conversions/cleanups/fallbacks:
-        result[MTIME] = int(result[MTIME] or 0) / 1000000 # convert usecs to secs
+        result[MTIME] = int(long(result[MTIME] or 0) / 1000000) # convert usecs to secs
         result['__rev'] = int(result['__rev']) - 1 # old storage is 1-based, we want 0-based
         result[NAME] = unquoteWikiname(result[NAME])
         action = result[ACTION]