From 823845059e304b344306e879f60dfdfd907ff647 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Thu, 5 Jul 2012 17:54:02 +0200 Subject: [PATCH] =?UTF-8?q?[wiki/patches]=20On=20cache=20les=20personnes?= =?UTF-8?q?=20notifi=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: ce781c3edf967da9e3056f8891b52bb9 darcs-hash:20120705155402-28565-9186c71fe30094156c63e56c27ba4d2ad9ff3040.gz --- wiki/patches/moin-hide-notifications.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 wiki/patches/moin-hide-notifications.patch diff --git a/wiki/patches/moin-hide-notifications.patch b/wiki/patches/moin-hide-notifications.patch new file mode 100644 index 00000000..bd3b93a4 --- /dev/null +++ b/wiki/patches/moin-hide-notifications.patch @@ -0,0 +1,28 @@ +diff -urN a/MoinMoin/PageEditor.py b/MoinMoin/PageEditor.py +--- a/MoinMoin/PageEditor.py 2012-07-05 17:27:11.000000000 +0200 ++++ b/MoinMoin/PageEditor.py 2012-07-05 17:26:52.000000000 +0200 +@@ -1147,14 +1147,16 @@ + e = events.PageChangedEvent(self.request, self, comment) + results = events.send_event(e) + +- recipients = set() +- for result in results: +- if isinstance(result, notification.Success): +- recipients.update(result.recipients) +- +- if recipients: +- info = _("Notifications sent to:") +- msg = msg + "

%s %s

" % (info, ", ".join(recipients)) ++# #Hack Cr@ns, cachez-moi: ++# #Listes des personnes notifiées ++# recipients = set() ++# for result in results: ++# if isinstance(result, notification.Success): ++# recipients.update(result.recipients) ++# ++# if recipients: ++# info = _("Notifications sent to:") ++# msg = msg + "

%s %s

" % (info, ", ".join(recipients)) + + # Update page trail with the page we just saved. + # This is needed for NewPage macro with backto because it does not