changeset 2324:c142804478c7

Add checkboxes that allow user to select means of notification.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 24 Jun 2007 01:09:38 +0200
parents a43db0817020
children 741ab277616a
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Sat Jun 23 21:15:18 2007 +0200
+++ b/MoinMoin/config/multiconfig.py	Sun Jun 24 01:09:38 2007 +0200
@@ -685,7 +685,17 @@
         if self.jabber_enabled:
             from xmlrpclib import Server
             self.notification_server = Server(self.notification_bot_uri, )
+            
+            # Add checkbox fields that allow user to select means of notification
+            self.user_checkbox_fields.extend([            
+                  ('notify_by_email', lambda _: _('Notify me about changes via email')),
+                  ('notify_by_jabber', lambda _: _('Notify me about changes via jabber')),
+                  ])
 
+            new_defaults = {'notify_by_email': 1, 'notify_by_jabber': 0}
+            self.user_checkbox_defaults.update(new_defaults)
+
+            
         # Cache variables for the properties below
         self._iwid = self._iwid_full = self._meta_dict = None