Hi On Wed, Mar 28, 2012 at 3:21 AM, Giuseppe Sucameli <[email protected]> wrote: > Hi all, > > I'm seeing that QgsPythonRunner executes all the commands in > "single mode" (just one row at one time), instead IMHO would be > useful to have it working in "file mode" (executing multiple lines). > > There are things that cannot be done in single line mode (e.g > try-catch statements). This behavior can be a strict constraint > while defining feature actions. > > Is there a reason to have it working in a such manner? > Regards. >
Multiline python support in actions would be nice - though as a work around I guess you can import a module and execute a function in it passing action params to it. Regards Tim > -- > Giuseppe Sucameli > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) ============================================== Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net ============================================== _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
