[GRASS-SVN] r35268 - grass-addons/vector/v.db.calc
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 7 11:12:09 EST 2009
Author: maxi
Date: 2009-01-07 11:12:09 -0500 (Wed, 07 Jan 2009)
New Revision: 35268
Modified:
grass-addons/vector/v.db.calc/v.db.calc
Log:
updated messages...
Modified: grass-addons/vector/v.db.calc/v.db.calc
===================================================================
--- grass-addons/vector/v.db.calc/v.db.calc 2009-01-07 15:53:20 UTC (rev 35267)
+++ grass-addons/vector/v.db.calc/v.db.calc 2009-01-07 16:12:09 UTC (rev 35268)
@@ -115,10 +115,11 @@
return -1
#Process and UPDATE
else:
+ print "please wait while updating values...."
#process lines
for l in range(0,len(lines)-1):
- if l%10==0:
- print "."
+ #if l%10==0:
+ # sys.stdout.write(".")
cols = lines[l].split("|")
evalexp = exp
for i in range(len(uf)):
@@ -136,7 +137,7 @@
#print updst
cmdargs2=["map=%s"%table,"col=%s"%field,"val=%s"%str(value),"where=cat=%s"%cols[0],"--q"]
os.spawnvp(os.P_WAIT,"v.db.update", ["v.db.update"] + cmdargs2)
-
+ print "....DONE"
return
if __name__ == "__main__":
@@ -144,11 +145,3 @@
os.execvp("g.parser", [sys.argv[0]] + sys.argv)
else:
main();
-
-
-
-
-
-
-
-
More information about the grass-commit
mailing list