[Qgis-user] QGIS Security warning: project macros have been disabled.

Tudorache, Marian Marian.Tudorache at navcanada.ca
Mon Apr 18 10:16:30 PDT 2016


Yes I know but it does not work anymore. I have used this in QGIS 2.8

This is the script that I want to be executed in Open Project area

execfile(u'/opt/support_sw/current/spam/python/Controllers/spam_menu.py'.encode('UTF-8'))

The script does not start and I get this warning message: QGIS Security warning: project macros have been disabled.
I have the same script in 2.8 and it runs without any problem.

Let's rephrase my question. Is something new in QGIS 2.10 which broke this old functionality? Or should change the way how to call a script?


Thanks,
Marian

-----Original Message-----
From: Kai Borgolte [mailto:Kai.Borgolte at gmx.de]
Sent: April-16-16 3:06 AM
To: Tudorache, Marian; qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Security warning: project macros have been disabled.

Am 15.04.2016 um 22:31 schrieb Tudorache, Marian:

> Is anything new in QGIS 2.10 which affects the macros launching?

In Settings, Options on the General tab there is the option "Enable macros". This is not new.


This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused by any virus and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l’usage exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez reçu ce message électronique par erreur, veuillez en informer l’expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus ou autre programme malveillant transmis par ce message électronique.


More information about the Qgis-user mailing list