]> projects.mako.cc - iron-blogger/commitdiff
update-participants.py: minor cleanup
authorNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 06:26:54 +0000 (01:26 -0500)
committerNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 06:26:54 +0000 (01:26 -0500)
update-participants.py

index 7f09576d40d701a538ebcd18dfca3c95647cc8b1..21980a1d6f12a6ba9492e6c1fa501ce823d85c89 100644 (file)
@@ -6,7 +6,6 @@ import sys
 import xmlrpclib
 import subprocess
 
 import xmlrpclib
 import subprocess
 
-text = render.render_template('templates/users.tmpl')
 
 XMLRPC_ENDPOINT = 'http://iron-blogger.mit.edu/xmlrpc.php'
 USER            = 'nelhage'
 
 XMLRPC_ENDPOINT = 'http://iron-blogger.mit.edu/xmlrpc.php'
 USER            = 'nelhage'
@@ -23,31 +22,7 @@ finally:
 x = xmlrpclib.ServerProxy(XMLRPC_ENDPOINT)
 page = x.wp.getPage(BLOG_ID, PAGE_ID, USER, passwd)
 
 x = xmlrpclib.ServerProxy(XMLRPC_ENDPOINT)
 page = x.wp.getPage(BLOG_ID, PAGE_ID, USER, passwd)
 
+text = render.render_template('templates/users.tmpl')
 page['description'] = text
 
 x.wp.editPage(BLOG_ID, PAGE_ID, USER, passwd, page, True)
 page['description'] = text
 
 x.wp.editPage(BLOG_ID, PAGE_ID, USER, passwd, page, True)
-
-# Parameters
-# int blog_id
-# int page_id
-# string username
-# string password
-# struct content
-#   string wp_slug
-#   string wp_password
-#   int wp_page_parent_id
-#   int wp_page_order
-#   int wp_author_id
-#   string title
-#   string description (content of post)
-#   string mt_excerpt
-#   string mt_text_more
-#   int mt_allow_comments (0 = closed, 1 = open)
-#   int mt_allow_pings (0 = closed, 1 = open)
-#   datetime dateCreated
-#   array custom_fields
-#     struct
-#       string id
-#       string key
-#       string value
-# bool publish

Benjamin Mako Hill || Want to submit a patch?