El mi�, 07-11-2007 a las 11:44 -0500, Jason Winnebeck escribi�: > I've been waiting for a plugin that would do this since... forever. We > have 6 environments. I bet this plugin doesn't take into account > permissions (if someone can actually visit the searched result), but > even so this is still very useful. I did have to make a patch. > Unfortunately I am bad at Python so it took me 15 minutes to do this > code: > > if not os.path.isdir( project_path ): > continue > > I needed to add this immediately before > env = open_environment(project_path) > > to prevent the exceptions.
Yes, you're right. I made many assumptions when developing this plugin, as it was supposed to be used in our environment only. But as it looks others might find it useful, I uploaded it to: http://trac-hacks.org/wiki/SearchAllPlugin > Definitely this is good to put up to trac-hacks. It works well and my > only suggestion is to see if performance can be improved. It seems to > take a long time to do a search, but what I noticed with "all projects" > is that it takes roughly the same amount of time to search regardless of > the options selected so I wonder if there is an overhead being > introduced above and beyond the direct search. Maybe opening each environment is a slow operation, but I don't know. I used the ProjectMenu plugin as sample for this code. If you manage to improve it, please post a ticket in the plugin page and I'll try to mantain it. Greets. > Jason > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > On Behalf Of Alvaro J. Iradier Muro > > I developed a small plugin to search in all projects in a multi-project > trac environment. > > > -- -------------------------------------- �lvaro J. Iradier Muro [EMAIL PROTECTED] AM&B - Dept. de Desarrollo e I+D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
