[GRASS-SVN] r48757 - in grass/trunk: gui/wxpython/gui_modules lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 12 07:59:40 EDT 2011


Author: martinl
Date: 2011-10-12 04:59:40 -0700 (Wed, 12 Oct 2011)
New Revision: 48757

Modified:
   grass/trunk/gui/wxpython/gui_modules/gselect.py
   grass/trunk/lib/python/core.py
Log:
pythonlib: r48755 - follow naming convetion


Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2011-10-12 11:52:02 UTC (rev 48756)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2011-10-12 11:59:40 UTC (rev 48757)
@@ -329,7 +329,7 @@
         
         # list of mapsets in current location
         if mapsets is None:
-            mapsets = grass.mapsets(searchPath = True)
+            mapsets = grass.mapsets(search_path = True)
         
         # current mapset first
         if curr_mapset in mapsets and mapsets[0] != curr_mapset:

Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2011-10-12 11:52:02 UTC (rev 48756)
+++ grass/trunk/lib/python/core.py	2011-10-12 11:59:40 UTC (rev 48757)
@@ -629,7 +629,7 @@
     mapset_re = re.compile("<(.*)>")
     result = {}
     if check_search_path:
-        for mapset in mapsets(searchPath = True):
+        for mapset in mapsets(search_path = True):
             result[mapset] = []
     
     mapset = None
@@ -712,7 +712,7 @@
     """
     result = {}
     if check_search_path:
-        for mapset in mapsets(searchPath = True):
+        for mapset in mapsets(search_path = True):
             result[mapset] = []
     
     mapset = None
@@ -875,14 +875,14 @@
 
 # interface to g.mapsets
 
-def mapsets(searchPath = False):
+def mapsets(search_path = False):
     """!List available mapsets
 
     @param searchPatch True to list mapsets only in search path
     
     @return list of mapsets
     """
-    if searchPath:
+    if search_path:
         flags = 'p'
     else:
         flags = 'l'



More information about the grass-commit mailing list