diff MoinMoin/themes/__init__.py @ 861:9a7889c04a25 storage-ng

fixed history view
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 02:08:27 +0200
parents 95d1033b7808
children 5bf6d7a2ffcf
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Sep 25 01:03:06 2011 +0200
+++ b/MoinMoin/themes/__init__.py	Sun Sep 25 02:08:27 2011 +0200
@@ -270,9 +270,9 @@
         return url
 
 
-def get_editor_info(rev, external=False):
-    addr = rev.meta.get(ADDRESS)
-    hostname = rev.meta.get(HOSTNAME)
+def get_editor_info(meta, external=False):
+    addr = meta.get(ADDRESS)
+    hostname = meta.get(HOSTNAME)
     text = _('anonymous')  # link text
     title = ''  # link title
     css = 'editor'  # link/span css class
@@ -290,7 +290,7 @@
             title = '[%s]' % (addr, )
             css = 'editor ip'
 
-    userid = rev.meta.get(USERID)
+    userid = meta.get(USERID)
     if userid:
         u = user.User(userid)
         name = u.name
@@ -397,7 +397,7 @@
                             'cfg': app.cfg,
                             'item_name': 'handlers need to give it',
                             'url_for_item': url_for_item,
-                            'get_editor_info': lambda rev: get_editor_info(rev),
+                            'get_editor_info': lambda meta: get_editor_info(meta),
                             'utctimestamp': lambda dt: utctimestamp(dt),
                             'gen': make_generator(),
                             })