iron-blogger/update-participants.py

19 lines
501 B
Python
Raw Normal View History

#!/usr/bin/python
import render
import os
import sys
import xmlrpclib
import subprocess
import settings
config=settings.load_settings()
x = xmlrpclib.ServerProxy(config['xmlrpc_endpoint'])
2012-09-29 18:55:49 +00:00
page = x.wp.getPage(config['blog_id'], config['participants_page_id'], config['username'], config['password'])
2009-12-30 06:26:54 +00:00
text = render.render_template('templates/users.tmpl')
page['description'] = text
2012-09-29 18:55:49 +00:00
x.wp.editPage(config['blog_id'], config['participants_page_id'], config['username'], config['password'],page,True)