[GRASS-SVN] r45276 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 1 11:09:49 EST 2011


Author: martinl
Date: 2011-02-01 08:09:49 -0800 (Tue, 01 Feb 2011)
New Revision: 45276

Modified:
   grass/trunk/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: fix _getExtPattern
(merge r45274 from relbr64)


Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2011-02-01 16:02:02 UTC (rev 45275)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2011-02-01 16:09:49 UTC (rev 45276)
@@ -21,7 +21,7 @@
  - GdalSelect
  - ProjSelect
  
-(C) 2007-2010 by the GRASS Development Team This program is free
+(C) 2007-2011 by the GRASS Development Team This program is free
 software under the GNU General Public License (>=v2). Read the file
 COPYING that comes with GRASS for details.
 
@@ -1252,12 +1252,8 @@
 
     def _getExtPattern(self, ext):
         """!Get pattern for case-insensitive mask"""
-        pattern = ''
-        for c in ext:
-            pattern += '[' + c + c.upper() + ']'
+        return '*.%s;*.%s' % (ext.lower(), ext.upper())
 
-        return pattern
-
     def OnSettingsLoad(self, event):
         """!Load named settings"""
         name = event.GetString()



More information about the grass-commit mailing list