Modify

Opened 7 years ago

#1881 new enhancement

[PATCH] Pull projects list from the database

Reported by: mpalmer@… Owned by: coderanger
Priority: normal Component: TracForgePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

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.

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.