]> projects.mako.cc - iron-blogger/blobdiff - update-participants.py
money from the last event
[iron-blogger] / update-participants.py
index fa65ccc82e342f223e4af3040426c4e6cee6e070..b3d0c2b2f6f54609e47e59a2b29243356840dbbd 100755 (executable)
@@ -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
+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)

Benjamin Mako Hill || Want to submit a patch?