Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add Comments support #29

Closed
wants to merge 2 commits into from

2 participants

@huxuan

Currently exitwp doesn't specify comments status.
Which dafult is disable the comments.
We can judge the comments status according wp:comment_status

@thomasf thomasf referenced this pull request from a commit
@thomasf Manual merge of #29 5502790
@thomasf
Owner

thanks

@thomasf thomasf closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 19, 2012
  1. @huxuan

    Add comments support

    huxuan authored
  2. @huxuan

    remove an extra empty line

    huxuan authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  exitwp.py
View
2  exitwp.py
@@ -128,6 +128,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 +260,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':
Something went wrong with that request. Please try again.