[GRASS-SVN] r55347 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 13 01:56:04 PDT 2013


Author: annakrat
Date: 2013-03-13 01:56:04 -0700 (Wed, 13 Mar 2013)
New Revision: 55347

Modified:
   grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: fix indentation

Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py	2013-03-13 08:53:12 UTC (rev 55346)
+++ grass/trunk/gui/wxpython/dbmgr/base.py	2013-03-13 08:56:04 UTC (rev 55347)
@@ -398,7 +398,7 @@
             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 @@
         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 @@
         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 @@
         # 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 @@
         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')



More information about the grass-commit mailing list