Re: [QGIS-Developer] PyQGIS read project from postgresql database

2023-05-13 Thread Alexandre Neto via QGIS-Developer
Hi, Actually, after I turned off the computer, I saw the fileName() method in documentation. I tried it and I realised that both my password and project name needed percent encoding some characters. So I have parsed my uri string with urllob.parse.quote to make it work correctly. Not sure if

Re: [QGIS-Developer] PyQGIS read project from postgresql database

2023-05-12 Thread Germán Carrillo via QGIS-Developer
Hi, what do you get if you run the following line on your QGIS Python console in a QGIS session where your project (the one stored in PG) is loaded? QgsProject.instance().fileName() Regards, Germán El vie, 12 may 2023 a las 19:22, Alexandre Neto via QGIS-Developer (< qgis-developer@lists.osge