[QGIS-Developer] User inputs in python and R script question

Benjamin Jakimow benjamin.jakimow at geo.hu-berlin.de
Mon May 30 06:48:00 PDT 2022


Hi Tyler,

you may use a QgsProcessingParameterAuthConfig parameter

https://qgis.org/pyqgis/master/core/QgsProcessingParameterAuthConfig.html

Greetings,

Benjamin


Am 30/05/2022 um 15:31 schrieb Tyler Veinot via QGIS-Developer:
> Hi All,
> I have a R script that I am trying to build into a processing tool. 
> The tool requires first to login to a database server and the script 
> grabs data. In the script editor I am using
> ##oracle.username=string
> ##oracle.password=string
> To capture user inputs to pass to the script for the login. When I put 
> those inputs into the processing tool it generally works but I can see 
> what is entered into the password box. How do I get it to hide that 
> password with *****? Is it the same technique for python scripts as well?
> Where can I go to learn more about turning scripts into processing 
> tools with user inputs and various options?
> image.png
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Benjamin Jakimow, Doctoral Researcher
Earth Observation Lab | Geography Department | Humboldt-Universität zu Berlin

e-mail:benjamin.jakimow at geo.hu-berlin.de

phone:  +49 (0) 30 2093 6846
mobile: +49 (0) 157 5656 8477
fax:    +49 (0) 30 2093 6848
mail:   Unter den Linden 6 | 10099 Berlin | Germany
room: 2'211
web:https://hu-berlin.de/eo-lab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220530/e06030e9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 22245 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220530/e06030e9/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5457 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220530/e06030e9/attachment-0001.bin>


More information about the QGIS-Developer mailing list