Commits

Olemis Lang committed 224c677

Trac #11148 : ListenerNotifier.required = True

Comments (0)

Files changed (1)

t11148/t11148_r11782_IEntityChangeListener_extends_with_prefix.diff

 
 diff -r 8d0c3223a818 trac/core.py
 --- a/trac/core.py	Thu Apr 18 14:30:21 2013 +0000
-+++ b/trac/core.py	Mon Apr 22 11:11:32 2013 -0500
++++ b/trac/core.py	Tue Apr 23 09:03:10 2013 -0500
 @@ -165,8 +165,30 @@
  
          locals_.setdefault('_implements', []).extend(interfaces)
 +        """Called when an entity has been re-parented."""
 +
 +class ListenerNotifier(Component):
-+    METHOD_DELIMITER = "_"
++    required = True
 +
 +    def notify(self, method, *args):
 +        interface = method.im_class
 +
 diff -r 8d0c3223a818 trac/ticket/model.py
 --- a/trac/ticket/model.py	Thu Apr 18 14:30:21 2013 +0000
-+++ b/trac/ticket/model.py	Mon Apr 22 11:11:32 2013 -0500
++++ b/trac/ticket/model.py	Tue Apr 23 09:03:10 2013 -0500
 @@ -25,7 +25,8 @@
  from trac.attachment import Attachment
  from trac import core
          """
 diff -r 8d0c3223a818 trac/ticket/tests/model.py
 --- a/trac/ticket/tests/model.py	Thu Apr 18 14:30:21 2013 +0000
-+++ b/trac/ticket/tests/model.py	Mon Apr 22 11:11:32 2013 -0500
++++ b/trac/ticket/tests/model.py	Tue Apr 23 09:03:10 2013 -0500
 @@ -12,8 +12,8 @@
  from trac.core import TracError, implements
  from trac.resource import ResourceNotFound