svn commit: samba-web r568 - in trunk/scripts: .

deryck at samba.org deryck at samba.org
Fri Mar 11 16:32:02 GMT 2005


Author: deryck
Date: 2005-03-11 16:31:58 +0000 (Fri, 11 Mar 2005)
New Revision: 568

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=568

Log:

Allow for Apache redirect when setting links in RSS feed.

deryck

Modified:
   trunk/scripts/updateNews.py


Changeset:
Modified: trunk/scripts/updateNews.py
===================================================================
--- trunk/scripts/updateNews.py	2005-03-10 23:01:11 UTC (rev 567)
+++ trunk/scripts/updateNews.py	2005-03-11 16:31:58 UTC (rev 568)
@@ -204,7 +204,7 @@
 				
 	if count > 0:
 		title = re.search('(?<=\"\>).+(?=\<\/a)', item_text)
-		link = re.search('(?<=\<div class=\"reference\">Link: \<a href=\").+(?=\"\>)', item_text)
+		link = re.search('(?<=\<div class=\"reference\">Link: \<a href=\"/samba/news/).+(?=\"\>)', item_text)
 
 		# Index out the HTML tags for XML
 		begin = item_text.find('<p>') + 3
@@ -214,7 +214,7 @@
 		feed.write('<item>\n')
 		feed.write('<title>' + title.group(0) + '</title>\n')
 		feed.write('<description>' + descrip + '</description>\n')
-		feed.write('<link>http://news.samba.org' + link.group(0) + '</link>\n')
+		feed.write('<link>http://news.samba.org/' + link.group(0) + '</link>\n')
 		feed.write('</item>\n\n')
 		count = count - 1
 



More information about the samba-cvs mailing list