The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Testing XML-RPC in Serendipity With MarsEdit

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jackson Miller

Posts: 222
Nickname: jaxn
Registered: Oct, 2004

Jackson Miller is a software developer in Nashvillle, TN currently working at CentreSource.com
Testing XML-RPC in Serendipity With MarsEdit Posted: Jun 28, 2005 7:30 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Jackson Miller.
Original Post: Testing XML-RPC in Serendipity With MarsEdit
Feed Title: Jaxn.org
Feed URL: http://jaxn.org
Feed Description: PHP thoughts on architecture and application design. Includes development information about Core Enterprise PHP.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Jackson Miller
Latest Posts From Jaxn.org

Advertisement
I got this working to a satisfactory level before the release of Serendipity 0.8, but it is broken again. I am going through using MarsEdit with Serendipity and trying to get it to work again.
  • Turn debug off in the bundled XML_RPC Server package
    I just silenced the DEBUG INFO: stuff from every response.
  • Accept HTML when posting
    I just put a str_replace for the borked less-than symbol in a couple of places. Fixing this right may have something to do with implementing mt.supportedTextFilters
  • Return the message body when requested
    metaWeblog.getRecentPosts was not implemented (it was aliased to mt.getrecentPostTitles). I implemented it and switched serendipity_fetchEntries to fetch the full entry, then I added the additional fields. I still need to add keywords to the returned value though.
  • Enable Tagging with MarsEdit's Keywords
  • mt.supportedTextFilters ???
  • Set categories when posting/ editing
  • When editing a post, update the last_updated timestamp, not the entry time
After a couple of hours of hacking I am getting to the point that MarsEdit is actually pretty usable for me. I have a few more bugs to knock out, but once HTML, categories, and tagging work, I will be able to do the vast majority of my posting through MarsEdit.

ARGH! TextDrive! So, there is an XML-RPC package bundled with Serendipity. In that package there is a reset($array) call that doesn't check for an array first. Apparently it is a recursive call or something and it was spewing a ton of warnings into TextDrive's log files (logging Warnings?). Well, they didn't like how much CPU the Warnings were taking up so they chowned the file 000 and chmoded it to root. They sent me an email explaining the problem and so I went it an put an is_array() before the call. I want to be mad at TextDrive for breaking my rhythm, but really it leaves a bad taste in my mouth about Serendipity. There were supposed to be patches in 0.8 that fixed XML-RPC stuff, but all the changes I made months ago are the same changes I am making tonight.
Continue reading "Testing XML-RPC in Serendipity With MarsEdit"

Read: Testing XML-RPC in Serendipity With MarsEdit

Topic: I am a Statistic Previous Topic   Next Topic Topic: PHP5 Kochbuch released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use