changeset 895:119cb9b352af storage-ng

add MTIME to user item revision metadata
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 27 Sep 2011 12:51:48 +0200
parents 93ae039cb363
children 7a01ee71dc4c
files MoinMoin/user.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Tue Sep 27 12:35:03 2011 +0200
+++ b/MoinMoin/user.py	Tue Sep 27 12:51:48 2011 +0200
@@ -32,7 +32,7 @@
 from whoosh.query import Term, And, Or
 
 from MoinMoin import config, wikiutil
-from MoinMoin.config import WIKINAME, NAME, NAME_EXACT, ITEMID, ACTION, CONTENTTYPE, EMAIL, OPENID, CURRENT
+from MoinMoin.config import WIKINAME, NAME, NAME_EXACT, ITEMID, ACTION, CONTENTTYPE, EMAIL, OPENID, CURRENT, MTIME
 from MoinMoin.i18n import _, L_, N_
 from MoinMoin.util.interwiki import getInterwikiHome, getInterwikiName, is_local_wiki
 from MoinMoin.util.crypto import crypt_password, upgrade_password, valid_password, \
@@ -368,6 +368,7 @@
             meta[key] = value
         meta[CONTENTTYPE] = u'application/x.moin.userprofile'
         meta[ACTION] = u'SAVE'
+        meta[MTIME] = int(time.time())
         item.store_revision(meta, StringIO(''), overwrite=True)
 
         if not self.disabled: