[GRASS-SVN] r55085 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 17 09:51:00 PST 2013


Author: annakrat
Date: 2013-02-17 09:51:00 -0800 (Sun, 17 Feb 2013)
New Revision: 55085

Modified:
   grass/trunk/gui/wxpython/core/utils.py
Log:
wxGUI: fix method from utils (although it is currently unused)

Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py	2013-02-17 16:10:35 UTC (rev 55084)
+++ grass/trunk/gui/wxpython/core/utils.py	2013-02-17 17:51:00 UTC (rev 55085)
@@ -294,7 +294,7 @@
     list.sort(cmp=lambda x, y: cmp(x.lower(), y.lower()))
 
 def GetVectorNumberOfLayers(vector):
-    """!Get list of vector layers"""
+    """!Get list of vector layers connected to database"""
     layers = list()
     if not vector:
         return layers
@@ -316,7 +316,7 @@
     else:
         Debug.msg(1, "GetVectorNumberOfLayers(): ret %s" % ret)
     
-    for line in ret.splitlines():
+    for line in out.splitlines():
         try:
             layer = line.split(';')[0]
             if '/' in layer:



More information about the grass-commit mailing list