Hello Tibor and Alexander, > On Mon, 16 Aug 2010, Alexander Wagner wrote: >> If I get the code excerpt correctly, it sounds like one could quite >> easily implement some >> >> $instancename = "invenio"; >> >> in the overall config file, to avoid the problem in a very clean way. > > Yes, if it is a common need, we could script something like that.
but I fear that it doesn't cover the application name from a Python point of view. That is, if you have your little or big scripts calling the Invenio API, for instance, you do: from invenio.search_engine import perform_request_search Using Tibor's solution, that is, renaming the second instance something else (ex, ithaka) would mean that all your small or larger scripts cannot be reused in the four instaces (I mean four, because, at least me, I have testing and production of my two sites), because the second one would be something like from ithaka.search_engine import perform_request_search OTOH, for me I prefer living in my own userspace and (minimal) permissions, without having to resort to sudo, except for some occasional Apache restart, and having my files being mine (just miiineeee, miiiiineeee... ;-), reducing the harm I can do whey I make mistakes. Ferran, recovering from vacation backlog
