[wiki/patches] On cache les personnes notifiées
Ignore-this: ce781c3edf967da9e3056f8891b52bb9 darcs-hash:20120705155402-28565-9186c71fe30094156c63e56c27ba4d2ad9ff3040.gz
This commit is contained in:
parent
1de3fdb129
commit
823845059e
1 changed files with 28 additions and 0 deletions
28
wiki/patches/moin-hide-notifications.patch
Normal file
28
wiki/patches/moin-hide-notifications.patch
Normal file
|
@ -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 + "<p>%s %s</p>" % (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 + "<p>%s %s</p>" % (info, ", ".join(recipients))
|
||||
|
||||
# Update page trail with the page we just saved.
|
||||
# This is needed for NewPage macro with backto because it does not
|
Loading…
Add table
Add a link
Reference in a new issue