projects
/
iron-blogger
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for 2012-12-03
[iron-blogger]
/
update-participants.py
diff --git
a/update-participants.py
b/update-participants.py
index fa65ccc82e342f223e4af3040426c4e6cee6e070..b3d0c2b2f6f54609e47e59a2b29243356840dbbd 100755
(executable)
--- a/
update-participants.py
+++ b/
update-participants.py
@@
-6,11
+6,7
@@
import sys
import xmlrpclib
import subprocess
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'])
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, PA
RTICIPANTS_PA
GE_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, PA
RTICIPANTS_PA
GE_ID, USER, passwd, page, True)
Benjamin Mako Hill
||
Want to submit a patch?