X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/ec27cbb27b2fd2f2590ebe3e0f6ad5ba21bb52ef..5e9f112065887a67745abe8c3fc2f4797889e15f:/update-participants.py diff --git a/update-participants.py b/update-participants.py old mode 100644 new mode 100755 index 21980a1..b3d0c2b --- a/update-participants.py +++ b/update-participants.py @@ -6,11 +6,7 @@ import sys import xmlrpclib import subprocess - -XMLRPC_ENDPOINT = 'http://iron-blogger.mit.edu/xmlrpc.php' -USER = 'nelhage' -BLOG_ID = 1 -PAGE_ID = 16 +from config import * try: subprocess.call(['stty', '-echo']) @@ -20,9 +16,9 @@ finally: subprocess.call(['stty', 'echo']) x = xmlrpclib.ServerProxy(XMLRPC_ENDPOINT) -page = x.wp.getPage(BLOG_ID, PAGE_ID, USER, passwd) +page = x.wp.getPage(BLOG_ID, PARTICIPANTS_PAGE_ID, USER, passwd) text = render.render_template('templates/users.tmpl') page['description'] = text -x.wp.editPage(BLOG_ID, PAGE_ID, USER, passwd, page, True) +x.wp.editPage(BLOG_ID, PARTICIPANTS_PAGE_ID, USER, passwd, page, True)