changeset 2308:d6333a20bc06

Use the event (handler) list from config, fix a silly mistake.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 22 Jun 2007 17:15:59 +0200
parents fe37834deb3d
children e3de8187401f 1833361481ff
files MoinMoin/userform.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userform.py	Fri Jun 22 17:15:26 2007 +0200
+++ b/MoinMoin/userform.py	Fri Jun 22 17:15:59 2007 +0200
@@ -237,7 +237,7 @@
                     
         if not 'jid' in theuser.auth_attribs:
             # try to get the jid
-            jid = wikiutil.clean_input(form.get('jid', "")).strip()
+            jid = wikiutil.clean_input(form.get('jid', "")[0]).strip()
             
             jid_changed = theuser.jid != jid
             previous_jid = theuser.jid           
@@ -332,7 +332,7 @@
         theuser.subscribed_pages = self._decode_pagelist('subscribed_pages')
         
         # subscription to various events
-        available = events.get_subscribable_events()
+        available = self.request.cfg.subscribable_events
         theuser.subscribed_events = [ev for ev in form.get('events', [])]
 
         # save data
@@ -474,7 +474,7 @@
     def _event_select(self):
         """ Create event subscription list. """
         
-        event_list = events.get_subscribable_events()
+        event_list = self.request.cfg.subscribable_events
         selected = self.request.user.subscribed_events
         super = self.request.user.isSuperUser()