diff MoinMoin/items/__init__.py @ 890:9c862a0aee26 storage-ng

for logged-in users, add userid to metadata when saving
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Sep 2011 16:16:52 +0200
parents 9a7889c04a25
children d90782ad8b24
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Mon Sep 26 15:54:12 2011 +0200
+++ b/MoinMoin/items/__init__.py	Mon Sep 26 16:16:52 2011 +0200
@@ -483,6 +483,9 @@
         if ADDRESS not in meta:
             meta[ADDRESS] = u'0.0.0.0' # TODO
 
+        if USERID not in meta and flaskg.user.valid:
+            meta[USERID] = flaskg.user.itemid
+
         meta[ACTION] = unicode(action)
 
         if not overwrite and REVID in meta: