summaryrefslogtreecommitdiffstats
path: root/format-weekly-calendar.py
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-12-13 13:38:20 -0500
committerPaul W. Frields <stickster@gmail.com>2010-12-13 13:38:20 -0500
commit67c5b166c93f71758dfe27c4fd89ad299287757a (patch)
tree7334290363aec832c03fe281697600591d5de434 /format-weekly-calendar.py
downloadecs-git-test-67c5b166c93f71758dfe27c4fd89ad299287757a.tar.gz
ecs-git-test-67c5b166c93f71758dfe27c4fd89ad299287757a.tar.xz
ecs-git-test-67c5b166c93f71758dfe27c4fd89ad299287757a.zip
Initial commit
Diffstat (limited to 'format-weekly-calendar.py')
-rw-r--r--format-weekly-calendar.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/format-weekly-calendar.py b/format-weekly-calendar.py
new file mode 100644
index 0000000..6cc44de
--- /dev/null
+++ b/format-weekly-calendar.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+# created by James Laska <jlaska@redhat.com>
+# modified by John Poelstra <poelstra@redhat.com>
+
+# This script parses csv files created with a custom report by TaskJuggler
+# It is used to send reminders of upcoming tasks to the team lists
+
+import os
+import sys
+
+if len(sys.argv) == 2:
+ fname = sys.argv[1]
+else:
+ print "Usage: %s <filename>" % sys.argv[0]
+ sys.exit(1)
+
+#print " Start End Name"
+fd = open(fname, "r")
+for line in fd.readlines():
+ #line.strip()
+ (start, end, name) = line[:-1].split(";")
+
+ # remove quotes
+ name = name.replace('"', '')
+ start = start.replace('"', '')
+ end = end.replace('"', '')
+ print "%-11s %-11s %s" % (start, end, name )
+fd.close()