]> projects.mako.cc - iron-blogger/blobdiff - update-participants.py
added two more feeds from vaugh
[iron-blogger] / update-participants.py
index fa65ccc82e342f223e4af3040426c4e6cee6e070..29b002c437ec87b485e163a8fe9e36f75a5edf83 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
+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

Benjamin Mako Hill || Want to submit a patch?