mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
fixed problem with boolean values in scripts (#5755)
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@233 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
This commit is contained in:
parent
42d60c7ec5
commit
580124de94
@ -13,8 +13,7 @@ from sextante.modeler.ModelerDialog import ModelerDialog
|
||||
from sextante.gui.ResultsDialog import ResultsDialog
|
||||
from sextante.about.AboutDialog import AboutDialog
|
||||
import subprocess
|
||||
from sextante.core.SextanteExternalAppsConfigurer import SextanteExternalAppsConfigurer
|
||||
|
||||
|
||||
cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
|
||||
if cmd_folder not in sys.path:
|
||||
sys.path.insert(0, cmd_folder)
|
||||
|
@ -117,7 +117,6 @@ from __future__ import division
|
||||
from pymorph_version import __version__, __version_info__
|
||||
|
||||
import sys, os
|
||||
from sextante.script.ProgressAccessor import ProgressAccessor
|
||||
from PyQt4.uic.Compiler.qtproxies import QtGui
|
||||
|
||||
mydir = os.path.dirname(__file__)
|
||||
|
@ -1,3 +0,0 @@
|
||||
class ProgressAccessor():
|
||||
|
||||
progress = None;
|
@ -100,7 +100,7 @@ class ScriptAlgorithm(GeoAlgorithm):
|
||||
elif tokens[1].lower().strip().startswith("selection"):
|
||||
options = tokens[1].strip()[len("selection"):].split(";")
|
||||
param = ParameterSelection(tokens[0], desc, options);
|
||||
elif tokens[1].lower().strip() == "boolean":
|
||||
elif tokens[1].lower().strip().startswith("boolean"):
|
||||
default = tokens[1].strip()[len("boolean")+1:]
|
||||
param = ParameterBoolean(tokens[0], desc, default)
|
||||
elif tokens[1].lower().strip() == "extent":
|
||||
|
Loading…
x
Reference in New Issue
Block a user