changeset 2425:c1592d799c53

remove more event stuff from prefs.py
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 20 Jul 2007 00:40:54 +0200
parents 26fe624bdbd6
children 5d1c31b0c6b5
files MoinMoin/userprefs/prefs.py
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/prefs.py	Fri Jul 20 00:28:46 2007 +0200
+++ b/MoinMoin/userprefs/prefs.py	Fri Jul 20 00:40:54 2007 +0200
@@ -290,24 +290,6 @@
 
         return util.web.makeSelection('theme_name', options, cur_theme)
 
-    def _event_select(self):
-        """ Create event subscription list. """
-
-        event_list = events.get_subscribable_events()
-        selected = self.request.user.subscribed_events
-        super = self.request.user.isSuperUser()
-
-        # Create a list of (value, name) tuples for display in <select>
-        # Only include super-user visible events if current user has these rights.
-        # It's cosmetic - the check for super-user rights should be performed
-        # in event handling code as well!
-        allowed = []
-        for key in event_list.keys():
-            if not event_list[key]['superuser'] or super:
-                allowed.append((key, event_list[key]['desc']))
-
-        return util.web.makeMultiSelection('events', allowed, selectedvals=selected)
-
     def _editor_default_select(self):
         """ Create editor selection. """
         editor_default = self.request.user.valid and self.request.user.editor_default or self.cfg.editor_default