<div dir="ltr"><div><div><div><div>Unfortunately no.<br><br></div><div>We have a set of action to do on a project.<br></div><div>The first is change the startup extent of the project,<br>the second is to add a set of wms layer to the canvas (and to the project loaded ofcourse).<br>
<br></div></div>Our security concern is to avoid to ask the user to remove the security settings for run our python code.<br></div><div>Two the main reasons. The user could work in a society that don't allow to remove that security<br>
</div>because the user could forget to restore the security concern after close the project and so use in the future with a less security qgis.<br></div>The second is that the user could not know how remove and re-enable the security constraints.<br>
<br><div><div><div><div class="gmail_extra">Andrea.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-04-28 8:35 GMT+02:00 Paolo Cavallini <span dir="ltr"><<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Il 28/04/2014 08:24, Andrea Peri ha scritto:<br>
<div class=""><br>
> I need to run a python in qgis startup phase.<br>
><br>
> I see the option to set the startup code in<br>
> project.properties -> macros<br>
><br>
> But this solution is not affordable for us, due to security settings.<br>
><br>
> So searching another solution, I try if exist an option to say to qgis<br>
> (using a parameter in the shell startup ) to run a python code.<br>
><br>
> My goal is to produce a python code capable to load a project file and<br>
> add some wms layer to the canvas.<br>
><br>
> I hope this solution could run without the constraints of security settings.<br>
<br>
</div>Hi Andrea,<br>
would the option to load atumatically a specified project solve your issue?<br>
BTW: what are exactly your security concerns?<br>
All the best.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Paolo Cavallini - <a href="http://www.faunalia.eu" target="_blank">www.faunalia.eu</a><br>
QGIS & PostGIS courses: <a href="http://www.faunalia.eu/training.html" target="_blank">http://www.faunalia.eu/training.html</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div></div></div></div></div>