X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/30fd9f8032af69d94001dfbddcdb5b392e9e4bcd..6154b0a13cfd01a86df4fa6bf7933eb5095302c9:/update-participants.py diff --git a/update-participants.py b/update-participants.py index fa65ccc..29b002c 100755 --- a/update-participants.py +++ b/update-participants.py @@ -6,11 +6,7 @@ import sys import xmlrpclib import subprocess - -XMLRPC_ENDPOINT = 'http://iron-blogger.mako.cc/xmlrpc.php' -USER = 'mako' -BLOG_ID = 1 -PAGE_ID = 12 +import config try: subprocess.call(['stty', '-echo']) @@ -20,7 +16,7 @@ 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