The Artima Developer Community
Sponsored Link

Python Buzz Forum
Atom, threading, etc.

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
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
Atom, threading, etc. Posted: Jul 27, 2006 10:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: Atom, threading, etc.
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

Atom has an extension for threading (via). This is great; when I was building an importer for this blog (from another blog software where I wrote the export by accessing the database directly) I used Atom, but had to invent something to match comments up to their respective posts. Relating comments to their posts was the only place where there seemed to be information loss in dumping the entire blog to Atom. So I made

So, the extension seems to look like this:

<feed xmlns:thr="http://purl.org/syndication/thread/1.0">
  <entry>
    <thr:in-reply-to ref="post-id" />
    ....
  </entry>
</feed>

With this I think most blogs can be 100% represented by an Atom model.

Well... another problem is that many blogs use something other than HTML for their content; something like Restructured Text, Textile, Markdown, etc. To be an accurate representation, the <content> should contain that format, or multiple forms of the content should be presented, with one marked as editable. Maybe the simplest solution to this is to store only the canonical representation (as, say, text/x-restructured-text) and render the feed differently for actual readers. But it would be nicer if this wasn't necessary.

There's also an extension in that spec for giving the comment feed URL:

<link rel="replies" href="comment-feed.xml" />

This doesn't really do anything for blog publishing software, just for readers, but it could be nice; having per-entry comment feeds isn't very interesting right now because the subscription process is not well automated -- the typical blog subscription process is way too heavy when you are just curious about followup comments that might last for a week at most. This gives smart readers an opportunity to treat this case specially.

A while ago there was some talk on the Pylons list about blog publishing software, and I brainstormed a kind of distributed set of pieces to implement a blog. The Atom Publishing Protocol and an Atom store could potentially be all the persistence you need, though I'm unclear on how you'd do general querying and reporting with the APP. Querying probably is best implemented just with ad hoc systems for now.

Read: Atom, threading, etc.

Topic: Reusable business-specific abstraction is an oxymoron Previous Topic   Next Topic Topic: CMS for GNOME, Why not Plone?

Sponsored Links



Google
  Web Artima.com   

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