]> projects.mako.cc - iron-blogger/commitdiff
fix bugs in the update-participants.py move to the new config
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 14 Aug 2012 14:36:41 +0000 (10:36 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 14 Aug 2012 14:36:41 +0000 (10:36 -0400)
update-participants.py

index 29b002c437ec87b485e163a8fe9e36f75a5edf83..b3d0c2b2f6f54609e47e59a2b29243356840dbbd 100755 (executable)
@@ -6,7 +6,7 @@ import sys
 import xmlrpclib
 import subprocess
 
 import xmlrpclib
 import subprocess
 
-import config
+from config import *
 
 try:
     subprocess.call(['stty', '-echo'])
 
 try:
     subprocess.call(['stty', '-echo'])
@@ -21,4 +21,4 @@ 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?