glasserc / rst2wp

Post to Wordpress using ReStructuredText
11 stars 10 forks source link

I love this project #1

Open pestaa opened 13 years ago

pestaa commented 13 years ago

The idea is so great I can't imagine why there are no tons of people using it.

I'll get up to speed with it soon and hopefully contribute a feature or two. Where can I find some rougher edges?

(I couldn't find an easier way to contact you. If you want to respond privately, I'm available at pestaa@pestaa.hu)

Thanks again!

glasserc commented 13 years ago

Hi! Thanks for the feedback. There's a handful of FIXMEs at the top of rst2wp.py. Of these, the one that I wish for most is a progress meter for uploads, but that's also the hardest, probably requiring a completely new XML-RPC library. There are also a few weird gotchas involving the styling that ReST output expects versus the CSS styling that WP provides; I'm not really sure how to deal with that.

If you wanted to get your hands dirty, the easiest FIXME would be to override the figure directive to do image uploading the way the image directive does.

jbremnant commented 12 years ago

great project! your directive.py is missing TEMP_FILES import from config pkg. Tried to push the small fix, but looks like i need perms to do it. Btw, have you seen this package? http://python-wordpress-xmlrpc.readthedocs.org/en/latest/index.html Looks like you are using xmlrpc directly, but this package might simplify a few things. I tried the lib out and it works pretty nicely. Thanks for the great work on this!

glasserc commented 12 years ago

Hi jbremnant, you can open a new issue if you like. Also, typical workflow on github is that you fork the project, push a fix to your fork, and then open a pull request, where we can discuss the patches you'd like to apply and why. I definitely screwed up with that missing import, so please submit a patch and I'll gladly apply it.

I'm not using xmlrpc directly, but instead using "wordpresslib", which I forked a long time ago and worked on to get it into a mostly reasonable state. I'd like to break up the changes I made (which were all a long time ago and made as one lump) and submit them to https://github.com/charlax/wordpresslib which seems to be the current upstream to wordpresslib, but if python-wordpress-xmlrpc is a better implementation of the same functionality, I'd certainly consider patches to switch one for the other. (Thanks for the link.)

jbremnant commented 12 years ago

Thanks for your prompt response. I wrote a bit about my experience with your lib. This link below is actually done using your rst2wp interface. :) http://techversat.com/2012/10/python-automation-of-wordpress-with-xmlrpc-2/

Yea, I realized after posting here that you were using lib/wordpresslib.py which came with the source. I've tested new_page function, but it bombed at _save_page which didn't exist. I fixed it by using _save_post since that function looked like a generic entry point for sending posts/pages to wp.

I think it wouldn't be too much work to convert to the newer lib. Before you decide, however, I'd just get in touch with the developer at https://github.com/maxcutler/python-wordpress-xmlrpc to make sure he's active on the project.

I can contribute, but will need to do bit more poking around to fully understand your source code.