Re: [Qgis-developer] python function to upgrade qgs datasources?

2014-08-21 Thread Régis Haubourg
It works! you saved me again Jürgen! I'm not totally clear yet on how to use procmon for that.. (just another tip?) Cheers -- View this message in context: http://osgeo-org.1560.x6.nabble.com/python-function-to-upgrade-qgs-datasources-tp5149022p5157530.html Sent from the Quantum GIS -

Re: [Qgis-developer] python function to upgrade qgs datasources?

2014-08-21 Thread Jürgen E . Fischer
Hi Régis, On Thu, 21. Aug 2014 at 01:07:41 -0700, Régis Haubourg wrote: It works! you saved me again Jürgen! I'm not totally clear yet on how to use procmon for that.. (just another tip?) Download procmon[1], run it and filter for process name qgis(-dev)-bin.exe and try a connection

Re: [Qgis-developer] python function to upgrade qgs datasources?

2014-08-20 Thread Régis Haubourg
Andreas Neumann wrote Hi Régis, I can't help you with the Python script to process your files, but I have a suggestion: Use a PostgreSQL service instead of hard-coded IP addresses, names or aliases. In such a scenario you can easily change between a production and test server and more

[Qgis-developer] python function to upgrade qgs datasources?

2014-07-01 Thread Régis Haubourg
Hi All, We are preparing a great postgres migration here, and to make it transparent, we have given virtual aliases to our server. User's QGS file refer today to hard coded IP or aliases (172.16.9.147 or vslin147). We have been migrating most qgs using bash script with grep and sed, but we

Re: [Qgis-developer] python function to upgrade qgs datasources?

2014-07-01 Thread Andreas Neumann
Hi Régis, I can't help you with the Python script to process your files, but I have a suggestion: Use a PostgreSQL service instead of hard-coded IP addresses, names or aliases. In such a scenario you can easily change between a production and test server and more easily migrate to a new

Re: [Qgis-developer] python function to upgrade qgs datasources?

2014-07-01 Thread Régis Haubourg
Great, thanks Andrea, I knew that system coming from Oracle, but we didn't find much doc on it so we did not focused a lot. Next migration will upgrade to using services for sure.. By now, I still have to deal with preexisting documents. switch as been done now, iut works anyway ;) let's us