fix typos with dates
[iron-blogger] / update-participants.py
1 #!/usr/bin/python
2
3 import render
4 import os
5 import sys
6 import xmlrpclib
7 import subprocess
8
9 from config import *
10
11 try:
12     subprocess.call(['stty', '-echo'])
13     passwd = raw_input("Password for %s: " % (USER,))
14     print
15 finally:
16     subprocess.call(['stty', 'echo'])
17
18 x = xmlrpclib.ServerProxy(XMLRPC_ENDPOINT)
19 page = x.wp.getPage(BLOG_ID, PARTICIPANTS_PAGE_ID, USER, passwd)
20
21 text = render.render_template('templates/users.tmpl')
22 page['description'] = text
23
24 x.wp.editPage(BLOG_ID, PARTICIPANTS_PAGE_ID, USER, passwd, page, True)

Benjamin Mako Hill || Want to submit a patch?