Christian Boos ha scritto:
E.g. currently, if I set the repository_type to hg,
I have to edit trac.ini and add:

[components]
hgtrac.* = enabled

It would be better if initenv would do it for me:

[components]
trac.versioncontrol.<repository_type>.* = enabled

Yes, I think that would be better: for my tracdarcs I tried to use a layout that could allow using the usual setuptools machinery, thus producing an egg installed indipendently from trac itself, or by dropping the module right under trac/versioncontrol. Too bad I was not able to figure out how to avoid an extra level in the hierarchy (the concrete modules are in "trac/versioncontrol/darcs/darcstrac/xxx.py"), and I had to insert an hack in "trac/versioncontrol/darcs/__init__.py".

But maybe the "namespace_packages" functionality of setuptools could help here, suggesting a policy of using a common "trac.versioncontrol" namespace for all the plugins.

ciao, lele.
_______________________________________________
Trac-dev mailing list
Trac-dev@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to