You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bhuvaneswaran Arumugam <bh...@collab.net> on 2006/07/14 07:17:07 UTC

Atom 1.0 feeds for subversion

Hello,

I have been writing a python script (svn2atom.py) to generate Atom 1.0
feeds for subversion. It is similar to the one we have for generating
the RSS feeds(svn2rss.py).

Here i provide a quick update about status of the script.

The script is used to generate Atom 1.0 feeds for subversion. In order
to strict to current scheme, i prefer to write a python script. When i
looked around for a python library to generate Atom 1.0 feeds, i
couldn't find one. So, i am using standard xml.dom and xml.utils
libraries to generate Atom 1.0 feeds. I have completed the script to
generate the feeds. Currently, i am trying to append items to an
existing file using pickle library.

Suggestions, feedbacks & corrections are welcome.
-- 
Regards,
Bhuvaneswaran

Re: Atom 1.0 feeds for subversion

Posted by "C. Michael Pilato" <cm...@collab.net>.
Bhuvaneswaran Arumugam wrote:
>>I'm not familiar with the atom feed format, but if its anywhere near as
>>simplistic as what we're getting out of svn2rss.py, you hardly need another
> 
> Yeah, it is almost similar to rss feeds and it is simple. I've attached
> a sample ATOM 1.0 feed.

Cool.

> By redoing so, what we are going to achieve ? Are there any complaints
> about using PyRSS2Gen from the users ? I'm unsure about its current
> state. IMO, PyRSS2Gen is available in all package formats (for example,
> in Ubuntu, by default it is available in universe repository). So, if we
> can do things smartly and easily using available libraries, why we
> should puddle with 'print' statements to generate the xml content when
> things are already stable.

As with most things, there's a balance to be attained.  I'm all for
modularity and code re-use, but if that modularity saves you an arguably
small amount of work (these feed formats are super-trivial) but costs your
users in that they've got to go grab a bunch of custom modules before their
scripts work, that's something to consider.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Re: Atom 1.0 feeds for subversion

Posted by Bhuvaneswaran Arumugam <bh...@collab.net>.
> I'm not familiar with the atom feed format, but if its anywhere near as
> simplistic as what we're getting out of svn2rss.py, you hardly need another

Yeah, it is almost similar to rss feeds and it is simple. I've attached
a sample ATOM 1.0 feed.

> library.  In fact, you could greatly enhance the usability of svn2rss.py by
> removing its dependency on PyRSS2Gen -- it's not like print '<item>' and

By redoing so, what we are going to achieve ? Are there any complaints
about using PyRSS2Gen from the users ? I'm unsure about its current
state. IMO, PyRSS2Gen is available in all package formats (for example,
in Ubuntu, by default it is available in universe repository). So, if we
can do things smartly and easily using available libraries, why we
should puddle with 'print' statements to generate the xml content when
things are already stable.

> '<link>' strings is rocket science, and now your script works completely
> with stock Python modules.

Yeah, we can use 'print "<item>i am summary</item>"'. But, how is it
different from using python libraries ? IMO, if we use python libraries,
it'll be easy to maintain and in case there is a revision (example: ATOM
2.0), we can add a new plugin easily. It's just my opinion though,
comments are welcome.
-- 
Regards,
Bhuvaneswaran

Re: Atom 1.0 feeds for subversion

Posted by "C. Michael Pilato" <cm...@collab.net>.
Bhuvaneswaran Arumugam wrote:
> Hello,
> 
> I have been writing a python script (svn2atom.py) to generate Atom 1.0
> feeds for subversion. It is similar to the one we have for generating
> the RSS feeds(svn2rss.py).
> 
> Here i provide a quick update about status of the script.
> 
> The script is used to generate Atom 1.0 feeds for subversion. In order
> to strict to current scheme, i prefer to write a python script. When i
> looked around for a python library to generate Atom 1.0 feeds, i
> couldn't find one. So, i am using standard xml.dom and xml.utils
> libraries to generate Atom 1.0 feeds. I have completed the script to
> generate the feeds. Currently, i am trying to append items to an
> existing file using pickle library.
> 
> Suggestions, feedbacks & corrections are welcome.

I'm not familiar with the atom feed format, but if its anywhere near as
simplistic as what we're getting out of svn2rss.py, you hardly need another
library.  In fact, you could greatly enhance the usability of svn2rss.py by
removing its dependency on PyRSS2Gen -- it's not like print '<item>' and
'<link>' strings is rocket science, and now your script works completely
with stock Python modules.


-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand