[GRASS-dev] [GRASS GIS] #978: wxGUI: files without extensions are not visible in file dialogs

#978: wxGUI: files without extensions are not visible in file dialogs
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
Files which do not have an extension are not visible in file dialogs.

1. touch test

2. try to locate file 'test' using a GRASS wxGUI dialog

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978&gt;
GRASS GIS <http://grass.osgeo.org>

#978: wxGUI: files without extensions are not visible in file dialogs
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by hamish):

Moritz writes:
{{{
I can confirm this. In the wx GUI, file dialogs are configured to look
for *.*, so any files which do not have an extension are not taken into
account. To test, just 'touch test' and then try to find the file test.

I don't know where this is defined in the code source, but in my eyes
there should be the possibility to "show all files", so looking for *
and not *.*, maybe even replacing *.* by *

Moritz
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#978: wxGUI: files without extensions are not visible in file dialogs
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by glynn):

Replying to [comment:1 hamish]:
> I don't know where this is defined in the code source,

The code uses wx.lib.filebrowsebutton, which uses *.* as the default value
for its fileMask parameter.

> but in my eyes
> there should be the possibility to "show all files", so looking for *
> and not *.*, maybe even replacing *.* by *

Try `filebrowse.FileBrowseButton(..., fileMask = '*')`

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#978: wxGUI: files without extensions are not visible in file dialogs
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by mlennert):

Replying to [comment:2 glynn]:
> Replying to [comment:1 hamish]:
> > I don't know where this is defined in the code source,
>
> The code uses wx.lib.filebrowsebutton, which uses *.* as the default
value for its fileMask parameter.
>
> > but in my eyes
> > there should be the possibility to "show all files", so looking for *
> > and not *.*, maybe even replacing *.* by *
>
> Try `filebrowse.FileBrowseButton(..., fileMask = '*')`

Fixed in #41284. Can this be backported to deb6 and rel6 ?

Moritz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#978: wxGUI: files without extensions are not visible in file dialogs
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:3 mlennert]:

> > Try `filebrowse.FileBrowseButton(..., fileMask = '*')`
>
> Fixed in #41284. Can this be backported to deb6 and rel6 ?

yes, Martin

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#978: wxGUI: files without extensions are not visible in file dialogs
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by mlennert):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:3 mlennert]:
> Replying to [comment:2 glynn]:
> > Replying to [comment:1 hamish]:
> > > I don't know where this is defined in the code source,
> >
> > The code uses wx.lib.filebrowsebutton, which uses *.* as the default
value for its fileMask parameter.
> >
> > > but in my eyes
> > > there should be the possibility to "show all files", so looking for
*
> > > and not *.*, maybe even replacing *.* by *
> >
> > Try `filebrowse.FileBrowseButton(..., fileMask = '*')`
>
> Fixed in #41284. Can this be backported to deb6 and rel6 ?

Done: r41287 and r41288.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/978#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>