]> projects.mako.cc - iron-blogger/blobdiff - update-participants.py
Update for 2012-08-20
[iron-blogger] / update-participants.py
old mode 100644 (file)
new mode 100755 (executable)
index 21980a1..b3d0c2b
@@ -6,11 +6,7 @@ import sys
 import xmlrpclib
 import subprocess
 
 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'])
 
 try:
     subprocess.call(['stty', '-echo'])
@@ -20,9 +16,9 @@ finally:
     subprocess.call(['stty', 'echo'])
 
 x = xmlrpclib.ServerProxy(XMLRPC_ENDPOINT)
     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
 
 
 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)

Benjamin Mako Hill || Want to submit a patch?