changeset 2333:88c539512520

s/page_edit/notify
author Karol Nowak <grzywacz@sul.uni.lodz.pl>
date Wed, 27 Jun 2007 13:25:40 +0200
parents 456545b5acfe
children abcb89a89ad2
files MoinMoin/PageEditor.py MoinMoin/action/revert.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Wed Jun 27 13:14:05 2007 +0200
+++ b/MoinMoin/PageEditor.py	Wed Jun 27 13:25:40 2007 +0200
@@ -536,7 +536,7 @@
             if request.user.may.write(newpagename):
                 # Save page text with a comment about the old name and log entry
                 savetext = u"## page was copied from %s\n%s" % (self.page_name, savetext)
-                newpage.saveText(savetext, 0, comment=comment, index=0, extra=self.page_name, action='SAVE', page_edit=False)
+                newpage.saveText(savetext, 0, comment=comment, index=0, extra=self.page_name, action='SAVE', notify=False)
             else:
                 # if user is  not able to write to the page itselfs we set a log entry only
                 from MoinMoin import packages
@@ -605,7 +605,7 @@
             self.error = None
             # Save page text with a comment about the old name
             savetext = u"## page was renamed from %s\n%s" % (self.page_name, savetext)
-            newpage.saveText(savetext, 0, comment=comment, index=0, extra=self.page_name, action='SAVE/RENAME', page_edit=False)
+            newpage.saveText(savetext, 0, comment=comment, index=0, extra=self.page_name, action='SAVE/RENAME', notify=False)
             # delete pagelinks
             arena = newpage
             key = 'pagelinks'
@@ -658,7 +658,7 @@
             event = PageDeletedEvent(request, self, comment)
             send_event(event)
             
-            msg = self.saveText(u"deleted\n", 0, comment=comment or u'', index=1, deleted=True, page_edit=False)
+            msg = self.saveText(u"deleted\n", 0, comment=comment or u'', index=1, deleted=True, notify=False)
             msg = msg.replace(
                 _("Thank you for your changes. Your attention to detail is appreciated."),
                 _('Page "%s" was successfully deleted!') % (self.page_name,))
@@ -966,7 +966,7 @@
         @keyword action: action for editlog (default: SAVE)
         @keyword index: needs indexing, not already handled (default: 1)
         @keyword deleted: if True, then don't save page content (used by DeletePage, default: False)
-        @keyword page_edit: if False (default: True), don't send a PageChangedEvent
+        @keyword notify: if False (default: True), don't send a PageChangedEvent
         @rtype: unicode
         @return: error msg
         """
@@ -975,7 +975,7 @@
         self._save_draft(newtext, rev, **kw)
         action = kw.get('action', 'SAVE')
         deleted = kw.get('deleted', False)
-        page_edit = kw.get('page_edit', True)
+        notify = kw.get('notify', True)
 
         #!!! need to check if we still retain the lock here
         #!!! rev check is not enough since internal operations use "0"
@@ -1051,7 +1051,7 @@
             self.clean_acl_cache()
             self._save_draft(None, None) # everything fine, kill the draft for this page
 
-            if page_edit:
+            if notify:
                 # send notifications
                 from MoinMoin import events
                 e = events.PageChangedEvent(self.request, self, comment, trivial)
--- a/MoinMoin/action/revert.py	Wed Jun 27 13:14:05 2007 +0200
+++ b/MoinMoin/action/revert.py	Wed Jun 27 13:25:40 2007 +0200
@@ -27,7 +27,7 @@
 
         revstr = '%08d' % rev
         try:
-            msg = newpg.saveText(pg.get_raw_body(), 0, extra=revstr, action="SAVE/REVERT", page_edit=False)
+            msg = newpg.saveText(pg.get_raw_body(), 0, extra=revstr, action="SAVE/REVERT", notify=False)
             pg = newpg
         except newpg.SaveError, msg:
             msg = unicode(msg)