Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing little things in WordPress importer (WIP) #1847

Merged
merged 4 commits into from Jun 30, 2015

Conversation

felixfontein
Copy link
Contributor

When importing a WordPress blog whose blog description was not set, I got null inserted into conf.py instead of "PUT DESCRIPTION HERE", which caused nikola build to fail. This is fixed in 5781644.

Then, there are two more problems with the WordPress importer which make it fail for me; see comments here: b6cbfcbc

@felixfontein felixfontein added this to the v7.6.0 milestone Jun 27, 2015
@felixfontein
Copy link
Contributor Author

Parts will be fixed in #1824.

Missing at the moment: exception raised by tag.decode('utf8') under Python 3.

@felixfontein
Copy link
Contributor Author

The currently failed checks are due to a disk full error on Travis, and a missing import markdown.

tag = utils.slugify(tag.decode('utf8'))
# In python 2, path is a str. slug requires a unicode
# object. According to wikipedia, unquoted strings will
# usually be UTF8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to that wikipedia page in code comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece is essentially a copy'n'paste from somewhere else in the same source file. The original comment has no link to Wikipedia, either.

@Kwpolska
Copy link
Member

Please make this mergeable and use try/except for decoding, and you can merge as soon as Travis builds.

@felixfontein
Copy link
Contributor Author

Should I modify both occurences in this case? (The second is here: https://github.com/getnikola/nikola/blob/master/nikola/plugins/command/import_wordpress.py#L419)

@felixfontein
Copy link
Contributor Author

Ok, modified both. Now merging.

felixfontein added a commit that referenced this pull request Jun 30, 2015
Fixing little things in WordPress importer (WIP)
@felixfontein felixfontein merged commit 685239d into master Jun 30, 2015
@felixfontein felixfontein deleted the fix-wordpress-import branch June 30, 2015 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants