changeset 3223:6ca25943fd1a

Fixed PageEditor tests; also fixed the subscribable_events property
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 09 Mar 2008 16:09:02 +0000
parents 8bfa8788da3d
children a4e5f28467b6
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Sun Mar 09 14:46:07 2008 +0100
+++ b/MoinMoin/config/multiconfig.py	Sun Mar 09 16:09:02 2008 +0000
@@ -884,8 +884,8 @@
                 self._subscribable_events = events.get_subscribable_events()
             return getattr(self, "_subscribable_events")
 
-        def setter(self, new_handlers):
-            self._event_handlers = new_handlers
+        def setter(self, new_events):
+            self._subscribable_events = new_events
 
         return property(getter, setter)
     subscribable_events = make_subscribable_events_prop()
@@ -896,7 +896,11 @@
             if getattr(self, "_event_handlers", None) is None:
                 self._event_handlers = events.get_handlers(self)
             return getattr(self, "_event_handlers")
-        return property(getter)
+        
+        def setter(self, new_handlers):
+            self._event_handlers = new_handlers
+            
+        return property(getter, setter)
     event_handlers = make_event_handlers_prop()
 
     def load_IWID(self):