Skip to content
Browse files

Add comments support

  • Loading branch information...
1 parent dcbbe79 commit fbaa78dc53dd3dfb6a76b4e0727dcd9c898a3afd @huxuan committed Jul 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 exitwp.py
View
3 exitwp.py
@@ -109,6 +109,7 @@ def gi(q, unicode_wrap=True):
for key in body_replace:
body = body.replace(key, body_replace[key])
+
img_srcs = []
if body is not None:
try:
@@ -128,6 +129,7 @@ def gi(q, unicode_wrap=True):
'type': gi('wp:post_type'),
'wp_id': gi('wp:post_id'),
'parent': gi('wp:post_parent'),
+ 'comments': gi('wp:comment_status') == u'open',
'taxanomies': export_taxanomies,
'body': body,
'img_srcs': img_srcs
@@ -259,6 +261,7 @@ def get_attachment_path(src, dir, dir_prefix='a'):
'slug': i['slug'],
'status': i['status'],
'wordpress_id': i['wp_id'],
+ 'comments': i['comments'],
}
if i['type'] == 'post':

0 comments on commit fbaa78d

Please sign in to comment.
Something went wrong with that request. Please try again.