1. Michael Kerrin
  2. moin-2.0

Commits

Thomas Waldmann  committed 119cb9b

add MTIME to user item revision metadata

  • Participants
  • Parent commits 93ae039
  • Branches storage-ng

Comments (0)

Files changed (1)

File MoinMoin/user.py

View file
 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, \
             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: