changeset 41:65041ee232ea

Merged.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 20 Feb 2008 22:34:31 +0100
parents c49889f8f9ac (current diff) dfe399e0b67e (diff)
children f8c8f05bb4cc
files
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/update_news.py	Wed Feb 20 22:33:38 2008 +0100
+++ b/update_news.py	Wed Feb 20 22:34:31 2008 +0100
@@ -109,12 +109,16 @@
     #tip_age = age(repository_data.entries[0].updated_parsed)
     #now = strftime("%Y-%m-%d %H:%M UTC", gmtime())
 
+    count = 4
+    repository_entries = repository_data.entries[:count]
+    viff_devel_entries = [e for e in viff_devel_data.entries
+                          if e.author != "viff-devel< at >viff.dk"][:count]
+
     logging.info("Rendering news.html")
     loader = TemplateLoader(['.'])
     tmpl = loader.load('news.xml')
-    stream = tmpl.generate(repository=repository_data.entries[:4],
-                           viff_devel=viff_devel_data.entries[:4])
-
+    stream = tmpl.generate(repository=repository_entries,
+                           viff_devel=viff_devel_entries)
     out = open('_news.html', 'w')
     out.write(stream.render('html'))
     out.close()