changeset 2186:374ce2bbb1a0

item_modified signal send comment and rev data object
author Ana Balica <ana.balica@gmail.com>
date Tue, 10 Sep 2013 23:35:13 +0300
parents 36bd132a5a97
children 1d445aa84ecf
files MoinMoin/items/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Mon Sep 09 19:44:15 2013 +0300
+++ b/MoinMoin/items/__init__.py	Tue Sep 10 23:35:13 2013 +0300
@@ -395,8 +395,8 @@
             # just destroy this revision
             self.rev.item.destroy_revision(self.rev.revid)
         action = DESTROY_ALL if destroy_item else DESTROY_REV
-        item_modified.send(app._get_current_object(), item_name=self.name, action=action, meta=self.meta,
-                           content=self.content)
+        item_modified.send(app, item_name=self.name, action=action, meta=self.meta,
+                           content=self.rev.data, comment=comment)
 
     def modify(self, meta, data, comment=u'', contenttype_guessed=None, **update_meta):
         meta = dict(meta)  # we may get a read-only dict-like, copy it