Переглянути джерело

wxGUI/dbmgr: fix indentation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55347 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 роки тому
батько
коміт
abfaedcd3a
1 змінених файлів з 8 додано та 8 видалено
  1. 8 8
      gui/wxpython/dbmgr/base.py

+ 8 - 8
gui/wxpython/dbmgr/base.py

@@ -398,7 +398,7 @@ class VirtualAttributeList(wx.ListCtrl,
             self.popupID14 = wx.NewId()
             popupMenu.Append(self.popupID14, text = _("Add column"))
             if not self.dbMgrData['editable']:
-              popupMenu.Enable(self.popupID14, False)
+                popupMenu.Enable(self.popupID14, False)
 
         if not self.dbMgrData['editable']:
             popupMenu.Enable(self.popupID13, False)
@@ -596,7 +596,7 @@ class DbMgrBase:
         if not self.mapdisplay:
             pass
         elif self.mapdisplay.tree and \
-           self.dbMgrData['treeItem'] and not self.dbMgrData['vectName']:
+            self.dbMgrData['treeItem'] and not self.dbMgrData['vectName']:
             maptree = self.mapdisplay.tree
             name = maptree.GetLayerInfo(self.dbMgrData['treeItem'], key = 'maplayer').GetName()
             self.dbMgrData['vectName'] = name
@@ -607,9 +607,9 @@ class DbMgrBase:
         if self.dbMgrData['vectName']:
             mapInfo = grass.find_file(name = self.dbMgrData['vectName'], element = 'vector')
         if not mapInfo or mapInfo['mapset'] != grass.gisenv()['MAPSET']:
-             self.dbMgrData['editable'] = False
+            self.dbMgrData['editable'] = False
         else:
-             self.dbMgrData['editable'] = True
+            self.dbMgrData['editable'] = True
         
         self.cmdLog = log    # self.parent.goutput
 
@@ -646,9 +646,9 @@ class DbMgrBase:
         # the current mapset
         mapInfo = grass.find_file(name = self.dbMgrData['vectName'], element = 'vector')
         if not mapInfo or mapInfo['mapset'] != grass.gisenv()['MAPSET']:
-             self.dbMgrData['editable'] = False
+            self.dbMgrData['editable'] = False
         else:
-             self.dbMgrData['editable'] = True
+            self.dbMgrData['editable'] = True
 
         # 'manage layers page
         if self.pages['manageLayer']:
@@ -1139,8 +1139,8 @@ class DbMgrBrowsePage(DbMgrNotebookBase):
         sqlReduce = self.sqlBestSize[0] > size[0] 
         if (sqlReduce and self.layerPage[layer]['sqlIsReduced']) or \
            (not sqlReduce and not self.layerPage[layer]['sqlIsReduced']):
-           event.Skip()
-           return
+            event.Skip()
+            return
 
         wherePanel = sqlNtb.FindWindowByName('wherePanel')
         btnApply = sqlNtb.FindWindowByName('btnApply')