[GRASS-SVN] r33597 - grass/trunk/scripts/v.db.renamecol

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 29 13:26:51 EDT 2008


Author: glynn
Date: 2008-09-29 13:26:50 -0400 (Mon, 29 Sep 2008)
New Revision: 33597

Modified:
   grass/trunk/scripts/v.db.renamecol/v.db.renamecol.py
Log:
Fix bugs


Modified: grass/trunk/scripts/v.db.renamecol/v.db.renamecol.py
===================================================================
--- grass/trunk/scripts/v.db.renamecol/v.db.renamecol.py	2008-09-29 16:25:56 UTC (rev 33596)
+++ grass/trunk/scripts/v.db.renamecol/v.db.renamecol.py	2008-09-29 17:26:50 UTC (rev 33597)
@@ -52,8 +52,6 @@
 import os
 import grass
 
-def error():
-
 def main():
     map = options['map']
     layer = options['layer']
@@ -80,7 +78,7 @@
     oldcol = cols[0]
     newcol = cols[1]
 
-    if $driver == "dbf":
+    if driver == "dbf":
 	if len(newcol) > 10:
 	    grass.fatal("Column name <%s> too long. The DBF driver supports column names not longer than 10 characters" % newcol)
 



More information about the grass-commit mailing list