Pārlūkot izejas kodu

grass.py: list_grouped2() renamed to mlist_grouped()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34949 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 gadi atpakaļ
vecāks
revīzija
4b80f5a2a2

+ 1 - 1
gui/wxpython/gui_modules/gdialogs.py

@@ -690,7 +690,7 @@ class LoadMapLayersDialog(wx.Dialog):
         @param mapset mapset name
         """
         try:
-            self.map_layers = grass.list_grouped2(type=type, mapset=mapset)[mapset]
+            self.map_layers = grass.mlist_grouped(type=type, mapset=mapset)[mapset]
         except KeyError:
             self.map_layers = []
         

+ 1 - 1
gui/wxpython/gui_modules/gselect.py

@@ -210,7 +210,7 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
                 mapsets[i] = mapsets[0]
                 mapsets[0] = curr_mapset
 
-        filesdict = grass.list_grouped2(elementdict[element])
+        filesdict = grass.mlist_grouped(elementdict[element])
         
         for dir in mapsets:
             dir_node = self.AddItem('Mapset: '+dir)

+ 1 - 1
lib/python/grass.py

@@ -296,7 +296,7 @@ def list_grouped(type):
             result[mapset].extend(line.split())
     return result
 
-def list_grouped2(type, mapset = None, pattern = None):
+def mlist_grouped(type, mapset = None, pattern = None):
     """Returns the output from running g.mlist, as a dictionary where the keys
     are mapset names and the values are lists of maps in that mapset. 
     """