[cw-shell] Write ignored scripts warning on stderr instead of stdout.
--- a/server/migractions.py Fri Apr 23 17:32:47 2010 +0200
+++ b/server/migractions.py Fri Apr 23 17:01:45 2010 +0200
@@ -116,10 +116,10 @@
return super(ServerMigrationHelper, self).cmd_process_script(
migrscript, funcname, *args, **kwargs)
else:
- print
- print ('-> ignoring %s, only .py .sql and .txt scripts are considered' %
+ print >> sys.stderr
+ print >> sys.stderr, ('-> ignoring %s, only .py .sql and .txt scripts are considered' %
migrscript)
- print
+ print >> sys.stderr
self.commit()
except:
self.rollback()