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

deryck at samba.org deryck at samba.org
Fri Jul 22 01:11:50 GMT 2005


Author: deryck
Date: 2005-07-22 01:11:49 +0000 (Fri, 22 Jul 2005)
New Revision: 753

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

Log:
I always forget that dp runs python 2.1...
This checks the string old-school style. :-)

deryck

Modified:
   trunk/scripts/updateNews.py


Changeset:
Modified: trunk/scripts/updateNews.py
===================================================================
--- trunk/scripts/updateNews.py	2005-07-21 22:18:57 UTC (rev 752)
+++ trunk/scripts/updateNews.py	2005-07-22 01:11:49 UTC (rev 753)
@@ -221,7 +221,7 @@
         link = re.search('(?<=\<div class=\"reference\">Link: \<a href=\"/samba/news/).+(?=\"\>)', item_text)
 
         # Drop end tag unless nested divs were used
-        if '<div' in text.group()[21:]:
+        if text.group()[21:].find('<div') == 0:
             description = text.group()[21:]
         else:
             description =  text.group()[21:-6]



More information about the samba-cvs mailing list