changeset 1857:659070e5e4d3

introduce request.editlog and use it for ItemCache
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 08 Mar 2007 14:31:48 +0100
parents 72ef28ba79b1
children 970140d46ae1
files MoinMoin/Page.py MoinMoin/request/__init__.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Thu Mar 08 14:28:32 2007 +0100
+++ b/MoinMoin/Page.py	Thu Mar 08 14:31:48 2007 +0100
@@ -81,8 +81,7 @@
             (for 'meta') or the complete cache ('pagelists').
             @param request: the request object
         """
-        from MoinMoin.logfile import editlog
-        elog = editlog.EditLog(request)
+        elog = request.editlog
         old_pos = self.log_pos
         new_pos, items = elog.news(old_pos)
         if items:
--- a/MoinMoin/request/__init__.py	Thu Mar 08 14:28:32 2007 +0100
+++ b/MoinMoin/request/__init__.py	Thu Mar 08 14:31:48 2007 +0100
@@ -196,6 +196,9 @@
             from MoinMoin.Page import RootPage
             self.rootpage = RootPage(self)
 
+            from MoinMoin.logfile import editlog
+            self.editlog = editlog.EditLog(self)
+
             from MoinMoin import i18n
             self.i18n = i18n
             i18n.i18n_init(self)