Explorar o código

wxGUI: comment-out not-finished functionality

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58297 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=11) %!d(string=hai) anos
pai
achega
320ee93b14
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      gui/wxpython/lmgr/layertree.py

+ 11 - 11
gui/wxpython/lmgr/layertree.py

@@ -514,17 +514,17 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             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