[GRASS-SVN] r67870 - grass/trunk/gui/wxpython/datacatalog

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 17 12:40:17 PST 2016


Author: martinl
Date: 2016-02-17 12:40:17 -0800 (Wed, 17 Feb 2016)
New Revision: 67870

Modified:
   grass/trunk/gui/wxpython/datacatalog/tree.py
Log:
g.gui.datacatalog: add node for grass locations

Modified: grass/trunk/gui/wxpython/datacatalog/tree.py
===================================================================
--- grass/trunk/gui/wxpython/datacatalog/tree.py	2016-02-17 20:16:56 UTC (rev 67869)
+++ grass/trunk/gui/wxpython/datacatalog/tree.py	2016-02-17 20:40:17 UTC (rev 67870)
@@ -139,13 +139,17 @@
             nprocs = cpu_count()
         except NotImplementedError:
                 nprocs = 4
+                
         results = dict()
         errors = []
         location_nodes = []
         nlocations = len(locations)
+        grassdata_node = self._model.AppendNode(parent=self._model.root,
+                                                label=_('GRASS locations ({})').format(self.gisdbase),
+                                                data=dict(type='grassdata'))
         for location in locations:
             results[location] = dict()
-            varloc = self._model.AppendNode(parent=self._model.root, label=location,
+            varloc = self._model.AppendNode(parent=grassdata_node, label=location,
                                             data=dict(type='location', name=location))
             location_nodes.append(varloc)
             loc_count += 1



More information about the grass-commit mailing list