changeset 22:cd0a86c0d613

Get the page from the d argument in editbar
author Radomir Dopieralski <devel@sheep.art.pl>
date Thu, 05 Jun 2008 14:50:10 +0200
parents 37b549ed2ebd
children c199a6e06df7
files mfact.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mfact.py	Thu Jun 05 14:49:03 2008 +0200
+++ b/mfact.py	Thu Jun 05 14:50:10 2008 +0200
@@ -153,6 +153,7 @@
     def editbar(self, d, **keywords):
         if not self.shouldShowEditbar(d['page']):
             return u''
+        page = d['page']
         if not (page.isWritable() and
                 self.request.user.may.write(page.page_name)):
             return u""