[GRASS-SVN] r54654 - grass-addons/grass7/raster/r.agent/libagent
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 15 15:17:11 PST 2013
Author: mic
Date: 2013-01-15 15:17:10 -0800 (Tue, 15 Jan 2013)
New Revision: 54654
Modified:
grass-addons/grass7/raster/r.agent/libagent/grassland.py
Log:
remove a certain layer from the list
Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-01-15 23:12:42 UTC (rev 54653)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-01-15 23:17:10 UTC (rev 54654)
@@ -81,7 +81,8 @@
Remove (forget about) the layer named from the layer collection
@param string name of the layer
"""
- pass
+ if self.layers.has_key(layername):
+ self.layers.pop(layername)
# def writelayer(self, layername):
# pass
More information about the grass-commit
mailing list