Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Sat, 10 Jan 2004
Hmm, it's harder than it looks
I was able to get started on coding MetaWeblog for pyblosxom last night. I got the XML-RPC skeleton code up and running and can retrieve the last N posts. The blogger API code for pyblosxom uses the blosxom directory name as the blog id, so it only searchs the directory named by the blog id. That seems wrong to me, because that's not really "the last N posts" it's the last N posts in that directory (category).

I also realized, after my excitement about Ecto, that I already have access to a nice weblog editor tool, the weblog editor built into NetNewsWire, so I started my testing using that. NNW has support for a number of different blogging systems and API's. Most systems that NNW supports are using the Blogger API, and MovableType uses both the Blogger API and the MetaWeblog API. In the array of structs that metaWeblog.getRecentPosts returns, I included information about the category of the post. Unfortuanately NNW doesn't make that information available. I started experimenting with the NNW commands and observing which MetaWeblog API calls were getting made. When NNW opens up, it never issues a metaWeblog.getCategories call. So it doesn't know what the categories are. If you do refresh it does a metaWeblog.getRecentPosts - but no call to get the categories. The retrieved posts are shown categoryless even if that information is in the return results.

One of the big reasons that I didn't use w.bloggar on Windows was that it couldn't deal with categories. NNW supposedly can do it, but you need the MovableType support. The biggest problem for somebody in my shoes, is that the metaWeblog (and Blogger) API's doen't say what the client is supposed to do about categories. If someone knows the correct sequence of metaWeblog API calls to retreive a set of posts which will have their categories displayed properly, that would be a big help.

In frustration, I looked at the Holy Grail, er, Atom API, but there's no description akin to the one that I want. So, just to be even handed, none of the specs have enough detail in them.

API documentation / specs has been both postively and negatively affected by tools like JavaDoc. These tools make it easy to document the individual methods of a class, but they don't help much with the "sequence diagram" problem, of documenting the right choreography of method invocations.

Looks like I'll be stuck with my little CGI for a while longer. I could use NNW's blosxom directory support but then I'd just be writing files in the file system. I could use SubEthaEdit's live HTML preview and my CGI -- the CGI can lace in categories, and does trackback, pingback, and notification pings. A good implementation of the Atom or MetaWeblog API's should be able to trigger such notifications as well.

[17:03] | [computers/internet/weblogs/pyblosxom] | # | TB | F | G | 6 Comments | Other blogs commenting on this post
Hi Ted, happy to help with the MetaWeblog API if possible. I looked and it does seem to explain categories in the docs. I've written code that deals with categories so I know it works in some circumstances. What specifically do you need to know how to do? Dave

http://www.xmlrpc.com/metaWeblogApi

"For categories, pass an array of strings of names of categories that the post belongs to, named categories. On the server side, it's not an error if the category doesn't exist, only record categories for ones that do exist."
Posted by Dave Winer at Sat Jan 10 17:55:16 2004






You can subscribe to an RSS feed of the comments for this blog: RSS Feed for comments

Add a comment here:

You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are: <a href>, <em>, <i>, <b>, <blockquote>, <br/>, <p>, <code>, <pre>, <cite>, <sub> and <sup>.

You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk

Name:


E-mail:


URL:


Comment:


Remember my info?


twl JPG

About

Ted Leung FOAF Explorer

I work at the Open Source Applications Foundation (OSAF).
The opinions expressed here are entirely my own, not those of my employer.

Creative Commons License
This work is licensed under a Creative Commons License.

Now available!
Professional XML Development with Apache Tools : Xerces, Xalan, FOP, Cocoon, Axis, Xindice
Technorati Profile
PGP Key Fingerprint
My del.icio.us Bookmarks
My Flickr Photos


Syndicate
RSS 2.0 xml GIF
Comments (RSS 2.0) xml GIF
Atom 0.3 feed
Feedburner'ed RSS feed

< January 2004 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

Archives
2006
2005
2004
2003

Articles
Macintosh Tips and Tricks

Search
Lucene
Blogs nearby
geourl PNG

Categories
/ (1567)
  books/ (33)
  computers/ (62)
    hardware/ (15)
    internet/ (58)
      mail/ (11)
      microcontent/ (58)
      weblogs/ (174)
        pyblosxom/ (36)
      www/ (25)
    open_source/ (145)
      asf/ (53)
      osaf/ (32)
        chandler/ (35)
        cosmo/ (1)
    operating_systems/ (16)
      linux/ (9)
        debian/ (15)
        ubuntu/ (2)
      macosx/ (101)
        tips/ (25)
      windows_xp/ (4)
    programming/ (156)
      clr/ (1)
      dotnet/ (13)
      java/ (71)
        eclipse/ (22)
      lisp/ (34)
      python/ (86)
      smalltalk/ (4)
      xml/ (18)
    research/ (1)
    security/ (4)
    wireless/ (1)
  culture/ (10)
    film/ (8)
    music/ (6)
  education/ (13)
  family/ (17)
  gadgets/ (24)
  misc/ (47)
  people/ (18)
  photography/ (25)
    pictures/ (12)
  places/ (3)
    us/ (0)
      wa/ (2)
        bainbridge_island/ (17)
        seattle/ (13)
  skating/ (6)
  society/ (20)



[Valid RSS]

del.icio.us linkblog

www.flickr.com

Blogroll

java.blogs
Listed on BlogShares

Locations of visitors to this page
Where are visitors to this page?


pyblosxom GIF