changeset 1779:224e2106ab89

call send_title with page kw arg, if available, not with pagename
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 18 Feb 2007 22:22:14 +0100
parents 465b0086c410
children c08e0c98a0cd
files MoinMoin/Page.py MoinMoin/PageEditor.py MoinMoin/PageGraphicalEditor.py MoinMoin/action/info.py
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Sun Feb 18 21:54:08 2007 +0100
+++ b/MoinMoin/Page.py	Sun Feb 18 22:22:14 2007 +0100
@@ -1109,7 +1109,7 @@
                 title = self.split_title()
 
                 request.theme.send_title(title, page=self, msg=msg,
-                                    pagename=self.page_name, print_mode=print_mode,
+                                    print_mode=print_mode,
                                     media=media, pi_refresh=pi_refresh,
                                     allow_doubleclick=1, trail=trail,
                                     )
--- a/MoinMoin/PageEditor.py	Sun Feb 18 21:54:08 2007 +0100
+++ b/MoinMoin/PageEditor.py	Sun Feb 18 22:22:14 2007 +0100
@@ -301,7 +301,7 @@
         request.theme.send_title(
             title % {'pagename': self.split_title(), },
             page=self,
-            pagename=self.page_name, msg=status,
+            msg=status,
             html_head=self.lock.locktype and (
                 _countdown_js % {
                      'countdown_script': request.theme.externalScript('countdown'),
--- a/MoinMoin/PageGraphicalEditor.py	Sun Feb 18 21:54:08 2007 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Feb 18 22:22:14 2007 +0100
@@ -204,7 +204,7 @@
         request.theme.send_title(
             title % {'pagename': self.split_title(), },
             page=self,
-            pagename=self.page_name, msg=status,
+            msg=status,
             html_head=self.lock.locktype and (
                 PageEditor._countdown_js % {
                      'countdown_script': request.theme.externalScript('countdown'),
--- a/MoinMoin/action/info.py	Sun Feb 18 21:54:08 2007 +0100
+++ b/MoinMoin/action/info.py	Sun Feb 18 22:22:14 2007 +0100
@@ -212,7 +212,7 @@
     request.setContentLanguage(lang)
     f = request.formatter
 
-    request.theme.send_title(_('Info for "%s"') % (title,), pagename=pagename)
+    request.theme.send_title(_('Info for "%s"') % (title,), page=page)
     menu_items = [
         (_('Show "%(title)s"') % {'title': _('Revision History')},
          {'action': 'info'}),