Edgewall Software

Changes between Version 1 and Version 2 of Ticket #11339, comment 5


Ignore:
Timestamp:
Feb 26, 2015, 12:49:08 AM (9 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11339, comment 5

    v1 v2  
    44Sending a notification on configuration change is another use-case that I'm interested in. We'll need an `IConfigurationChangeListener` `ExtensionPoint`. [browser:/tags/trac-1.0.3/trac/config.py@:54#L54 Configuration] is not a `Component` though. At a minimum we will need to pass the `Environment` object to `Configuration`.
    55
    6 A configuration diff can be prepared using the [https://docs.python.org/2/library/difflib.html#difflib.context_diff context_diff] function in `difflib`.
     6Once the extension point is implemented, an `IConfigurationChangeListener` can prepare a diff using the [https://docs.python.org/2/library/difflib.html#difflib.context_diff context_diff] function in `difflib` and send a notification, post the diff to a ticket, etc ...