[GRASS-SVN] r58297 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 24 13:01:05 PST 2013


Author: martinl
Date: 2013-11-24 13:01:05 -0800 (Sun, 24 Nov 2013)
New Revision: 58297

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: comment-out not-finished functionality

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2013-11-24 19:41:00 UTC (rev 58296)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2013-11-24 21:01:05 UTC (rev 58297)
@@ -514,17 +514,17 @@
             self.Bind(wx.EVT_MENU, self.OnTopology, id = self.popupID['topo'])
 
             # determine format
-            if layer and layer.GetType() == 'vector':
-                if 'info' not in self.GetLayerInfo(self.layer_selected):
-                    info = grass.parse_command('v.info',
-                                               flags = 'e',
-                                               map = layer.GetName())
-                    self.SetLayerInfo(self.layer_selected, key = 'info', value = info)
-                info = self.GetLayerInfo(self.layer_selected, key = 'info')
-                if info and info['format'] != 'native' and \
-                        info['format'].split(',')[1] == 'PostgreSQL':
-                    self.popupMenu.Append(self.popupID['sql'], text = _("SQL Spatial Query"))
-                    self.Bind(wx.EVT_MENU, self.OnSqlQuery, id = self.popupID['sql'])
+            # if layer and layer.GetType() == 'vector':
+            #     if 'info' not in self.GetLayerInfo(self.layer_selected):
+            #         info = grass.parse_command('v.info',
+            #                                    flags = 'e',
+            #                                    map = layer.GetName())
+            #         self.SetLayerInfo(self.layer_selected, key = 'info', value = info)
+            #     info = self.GetLayerInfo(self.layer_selected, key = 'info')
+            #     if info and info['format'] != 'native' and \
+            #             info['format'].split(',')[1] == 'PostgreSQL':
+            #         self.popupMenu.Append(self.popupID['sql'], text = _("SQL Spatial Query"))
+            #         self.Bind(wx.EVT_MENU, self.OnSqlQuery, id = self.popupID['sql'])
             
             if layer.GetMapset() != currentMapset:
                 # only vector map in current mapset can be edited



More information about the grass-commit mailing list