2019-03-08 12:43:50 +00:00
|
|
|
#!/usr/bin/python3
|
2009-12-30 06:08:27 +00:00
|
|
|
|
|
|
|
import render
|
|
|
|
import os
|
|
|
|
import sys
|
2019-03-08 12:43:50 +00:00
|
|
|
import xmlrpc.client
|
2009-12-30 06:08:27 +00:00
|
|
|
import subprocess
|
2012-01-24 21:16:11 +00:00
|
|
|
import settings
|
2009-12-30 06:08:27 +00:00
|
|
|
|
2012-01-24 21:16:11 +00:00
|
|
|
config=settings.load_settings()
|
2009-12-30 06:08:27 +00:00
|
|
|
|
2019-03-08 12:43:50 +00:00
|
|
|
x = xmlrpc.client.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:08:27 +00:00
|
|
|
|
2019-06-02 20:24:58 +00:00
|
|
|
text = render.render_template('templates/users.tmpl').decode("utf-8")
|
2009-12-30 06:08:27 +00:00
|
|
|
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)
|