[GRASS-dev] [GRASS GIS] #3778: where field in wxgui layer manager d.vect display missing value on workspace import
GRASS GIS
trac at osgeo.org
Thu Mar 21 11:06:38 PDT 2019
#3778: where field in wxgui layer manager d.vect display missing value on
workspace import
------------------------+---------------------------------
Reporter: balagates | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: svn-releasebranch76
Resolution: | Keywords: d.vect where
CPU: OSX/Intel | Platform: MacOSX
------------------------+---------------------------------
Comment (by balagates):
I noticed in the layer manager when a line with a d.vect "where" parameter
is selected the status bar shows the d.vect command including the "where"
and other parameters. I also noticed that when you open a properties
dialog (CmdPanel) for that vector the d.vect command is also shown in the
dialog windows status bar but the "where" parameter has been removed.
Debugging I see the "where" parameter is in the get_cmd() thru the end of
GUI.ParseCommand() but it disappeared after the following code in
./gui_core/forms.py UpdateThread.run() is run.
{{{
pBind = self.task.get_param(uid, element='wxId',
raiseError=False)
if pBind:
pBind['value'] = ''
}}}
This may not be a bug by itself but seems related. What I cannot find is
a way for the "where" value imported by the Open Workspace to initialize
the dialog "where" value. The value I expect is destroyed in the above
code but maybe the initialization should happen elsewhere? As far as I
can tell this aspect of the code has not changed since 7.4 and I thought
this might have been working in 7.4 (not sure though). Other parameters
such as "icon" are not affected. There appears to be special handling for
SqlWhereSelect type parameters.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3778#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list