My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Earlier this year

  • Aug 11, 2009
    issue 7 (Lack of mime-type in mediastruct) reported by ulf.urden   -   What steps will reproduce the problem? 1. Use WordPressClient.newMediaObject to upload an image 2. The image will be added in Wordpress media library, but will not display any thumbnail What is the expected output? What do you see instead? You expect to see a thumbnail of the image so you can insert it into posts. You don't. What version of the product are you using? On what operating system? SVN Trunk Please provide any additional information below. Please review the patch I have attached. It uses mimetypes module to correctly identify the mimetype. With it, you can upload images to Wordpress media library properly.
    What steps will reproduce the problem? 1. Use WordPressClient.newMediaObject to upload an image 2. The image will be added in Wordpress media library, but will not display any thumbnail What is the expected output? What do you see instead? You expect to see a thumbnail of the image so you can insert it into posts. You don't. What version of the product are you using? On what operating system? SVN Trunk Please provide any additional information below. Please review the patch I have attached. It uses mimetypes module to correctly identify the mimetype. With it, you can upload images to Wordpress media library properly.
  • Aug 08, 2009
    issue 6 (Tag support) commented on by danlanger   -   Tested and verified that Pardo's patch works - Python 2.5, WP 2.8
    Tested and verified that Pardo's patch works - Python 2.5, WP 2.8
  • Jul 24, 2009
    issue 6 (Tag support) commented on by pardo.bsso   -   Hi all, this little patch brings tag support. Now you can do: post = wordpresslib.WordPressPost() post.title = 'Some Title' post.tags = 'tag1, tag2, etc' #.... To apply do this from a shell: patch wordpresslib.py < tags.patch Please review and comment. Kind regards and happy bloggin'
    Hi all, this little patch brings tag support. Now you can do: post = wordpresslib.WordPressPost() post.title = 'Some Title' post.tags = 'tag1, tag2, etc' #.... To apply do this from a shell: patch wordpresslib.py < tags.patch Please review and comment. Kind regards and happy bloggin'
  • May 15, 2009
    issue 6 (Tag support) commented on by eadlam   -   I would also like to see tag support. I dug through the xmlrpc a little to find it's reference key, but it's not listed with all the other fields, so I don't really understand how it works.
    I would also like to see tag support. I dug through the xmlrpc a little to find it's reference key, but it's not listed with all the other fields, so I don't really understand how it works.
  • Apr 08, 2009
    issue 6 (Tag support) reported by olivierjan.com   -   Do you plan to add tag support for posting ? Thanks
    Do you plan to add tag support for posting ? Thanks
  • Mar 17, 2009
    issue 5 (Add poststatus support on WordpressPost) reported by biu.dantas   -   I´m building my own replication system to get some information from posts and I missed the status field from WordpressPost. I´ve patched wordpresslib.py to add this function, but would like to see it inside the lib. Thanks & Regards from Brazil -Robson
    I´m building my own replication system to get some information from posts and I missed the status field from WordpressPost. I´ve patched wordpresslib.py to add this function, but would like to see it inside the lib. Thanks & Regards from Brazil -Robson
  • Feb 08, 2009
    issue 4 (Access Custom Field Meta-Data) reported by ysalahi   -   Hello, the version of wordpress-library in distribution currently does not have support for custom field meta-data, though this is easy to add. Follow steps below to include functionality: In wordpresslib.py, add the following code to the __init__() function of the WordPressPost class: self.customFields = [] In _filterPost() function, add the following line: postObj.customFields = post['custom_fields'] In newPost(), modify the blogContent structure to include the following pair: 'custom_fields' : post.customFields That's all! Then you can create new posts with custom fields, or get custom fields from whatever posts you pull from the server. If you're creating them for a post, create a list of dictionaries for each key/value pair, like this: [{'key':'My Custom Key', 'value':'My Custom Value'}, {'key':'Another Key', 'value':'Another Value'}] When you pull a post, they are organized the same way, but they have another item in each dictionary called 'id' which is generated by WordPress. Enjoy! Yaman Salahi
    Hello, the version of wordpress-library in distribution currently does not have support for custom field meta-data, though this is easy to add. Follow steps below to include functionality: In wordpresslib.py, add the following code to the __init__() function of the WordPressPost class: self.customFields = [] In _filterPost() function, add the following line: postObj.customFields = post['custom_fields'] In newPost(), modify the blogContent structure to include the following pair: 'custom_fields' : post.customFields That's all! Then you can create new posts with custom fields, or get custom fields from whatever posts you pull from the server. If you're creating them for a post, create a list of dictionaries for each key/value pair, like this: [{'key':'My Custom Key', 'value':'My Custom Value'}, {'key':'Another Key', 'value':'Another Value'}] When you pull a post, they are organized the same way, but they have another item in each dictionary called 'id' which is generated by WordPress. Enjoy! Yaman Salahi
 
Hosted by Google Code