On 1/7/13, Vigneshwaran Raveendran <vigneshwaran2...@gmail.com> wrote: > Hi Trac team, >
:) > I have installed Trac and configured it with mod_python. I have my own > application that will send a REST call to Trac to create an environment > programmatically instead of me using trac-admin everytime. > Interesting . > I looked at the Docs and found that I can write a plugin implementing > IRequestHandler and use trac.env.Environment(path, create=True) > <jfyi> ... or you could also use trachacks:RestOnTracPlugin (once released ;) to write your own Trac powered REST-ful services ;) </jfyi> > But that plugin must already be running in some environment already and I > do not want that. > yes . That's the way Trac works . Request handling is peformed by environment's IRequestHandler(s) . In its current form the issue tracker lacks of support for features not related to environments (e.g. create environment) . > Is there some way I can make a (global) plugin intercept the url request > and do my job without needing an environment? > You have some options at hand : - DIY as a stand-alone web app i.e. not a Trac plugin - Reuse previous solutions offered by some other plugins (e.g. trachacks:CreateProjectPlugin afaicr ) - Adopt multi-product solutions like Apache⢠Bloodhound [1]_ or trachacks:SimpleMultiprojectPlugin . You'd be creating new (lightweight) products/projects instead of environments , but they serve to similar purposes , the main difference being related to DB sharing and isolation . > Or is there any other way I can make Trac to create an environment > programmatically instead of using trac-admin? > trac.env.open_environment but it seems to me that you should have figured this out already ... ;) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- 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.