All QSvn-news on my blog

I have converted all news about QSvn from the project-page to my blog last week. According to this the QSvn-Feed is now showing on the QSvn-Start-Page. To achieve this i put the RSSget-Macro for Trac that can show an imported RSS-Feed. Unfortunately the original plugin shows no date. So i must patch the parse_file-function shown below to do the job.

def parse_file(feeddata):
 
	rss_snippets = ""
	pubDates = []
	titles = []
	links = []
	words = []
 
	xmlstring = StringIO.StringIO(feeddata)
	# print str(xmlstring)
	xmldoc = minidom.parse(xmlstring)
	Itemlist = xmldoc.getElementsByTagName('item')
 
	for Item in Itemlist:
		for node2 in Item.getElementsByTagName("pubDate"):
			pubDate = cgi.escape(node2.firstChild.data)[:16]
			pubDates.append(pubDate)
		for node2 in Item.getElementsByTagName("title"):
			title = cgi.escape(node2.firstChild.data)
			titles.append(title)
		for node2 in Item.getElementsByTagName("link"):
			link = cgi.escape(node2.firstChild.data)
			links.append(link)
		for node2 in Item.getElementsByTagName("description"):
			description = cgi.escape(node2.firstChild.data)
			words.append(description)
 
	rss_snippets += "
<dl>\n"
	for i in range(RESULTS_FULL):
		rss_snippets += "
<dt><a href="&quot; + links[i] + &quot;">" + titles[i] + "</a> (" + pubDates[i] + ")</dt>
 
\n"
		rss_snippets += "
<dd>
 
" + words[i] + "
</dd>
 
\n"
 
	for i in range(RESULTS_FULL, RESULTS_TOTAL):
		rss_snippets += "
<dt><a href="&quot; + links[i] + &quot;">" + titles[i] + "</a> (" + pubDates[i] + ")</dt>
 
\n"
	rss_snippets += "</dl>
 
\n"
 
	return rss_snippets

The patch is submitted at track-hacks.org so the author can apply it to a new version.



Share/Save/Bookmark

3 Kommentare

  1. Mike Bolser:

    Just wondering, will the current version of QSvn work with SVN 1.5.0 or will an update be released to provide this support?

    Thanks!

    Mike

  2. ar:

    Hi,

    the current version doesn’t work with Subversion 1.5. But the actual development version does. I’ll rework the 0.7.0-Milestone so that i can release QSvn 0.7.0 with Subversion 1.5 support soon.

    Greetings,
    ar

  3. Andreas Richter:

    QSvn 0.7.0 released…

    I’m proud to announce you the release of QSvn 0.7.0. The new version now supports the merge-feature. You can merge changes from a specified URL into you local working copy or you can select changes in the log window to merge these changes to any …

Einen Kommentar schreiben