+ for (user, debt) in debts:
+ if debt < 30: continue
+ punt.append(user)
+ f.write("""\
+%(date)s Punt
+ Pool:Owed:%(user)s $-%(debt)s
+ User:%(user)s
+""" % {'user': user, 'debt': debt, 'date': date})
+
+
+if not dry_run:
+ text = render.render_template('templates/week.tmpl', date, punt=punt)
+
+ lines = text.split("\n")
+ title = lines[0]
+ body = "\n".join(lines[1:])
+
+ page = dict(title = title, description = body)
+
+ try:
+ subprocess.call(['stty', '-echo'])
+ passwd = raw_input("Password for %s: " % (USER,))
+ print
+ finally:
+ subprocess.call(['stty', 'echo'])