On 21.03.2012 19:36, Chris Nelson wrote:
I think I've asked something like this before but if I got a clear
answer, I can't find it now. Sorry for the repeat if that's the case.

Reminds me of these threads:

http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/6825

http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/6921

http://thread.gmane.org/gmane.comp.version-control.subversion.trac.general/32450/

I'm familiar with
http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture and have
managed to implement some Extension Points and toyed with
ExtensionOption, etc. but none of that seems to quite do what I want. In

Based on the rest of your description, I would have thought ExtensionOption is exactly what you want:

task_sorter = ExtensionOption('trac-jsgantt', 'task_sorter', ITaskSorter,
                            'DefaultTaskSorter',
        """Name of the component implementing `ITaskSorter`, which is used
        for sorting tasks.""")

...
theSorter = task_sorter
...

Then implement DefaultTaskSorter and say AdvancedTaskSorter. The user would keep both enabled (or disable the unused one although that's not required). By default DefaultTaskSorter would be used, and if the user wants to switch, he should put this in his trac.ini file:
    [trac-jsgantt]
    task_sorter = AdvancedTaskSorter

That's how it usually works in Trac. Are you sure this does not fit your needs? Why not?

--
Peter

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-dev@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to