Opened 8 years ago
[PATCH] Pull projects list from the database
|Reported by:||mpalmer@…||Owned by:||coderanger|
As a sort-of followon from a previous ticket, I've modified the project index to consult the master environment's database of projects instead of just grovelling around on the filesystem. This is better because:
- If you have a bunch of projects in some directory that don't go into the projects list (because they're not Tracforge projects), like I've got at the moment, the project index is noticably slower;
- You can scatter your Trac projects hither and yon on the filesystem while still being able to get them all into the project index.
the patch is a little ugly, since I couldn't work out how to get the master_env variable set correctly inside _send_index -- it would keep complaining about how objects of type Option or EnvironmentOption (depending on what I was trying to use at the time) lacked methods. Which is strange, because all I frigging wanted was a frigging string. Gah, Python confuses me.