summaryrefslogtreecommitdiff
path: root/app/src/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/build.py')
-rw-r--r--app/src/build.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/build.py b/app/src/build.py
index ac77d0b..a60f80c 100644
--- a/app/src/build.py
+++ b/app/src/build.py
@@ -7,7 +7,7 @@ class BuildSrc(Build):
self.build_archive()
self.build_topic_archive()
self.build_detail_pages()
-
+ self.build_feed()
def build_detail_pages(self):
'''
@@ -42,3 +42,10 @@ class BuildSrc(Build):
})
t = render_to_string('archives/src_home.html', c).encode('utf-8')
self.write_file(path, t, 'html', topic.slug)
+
+ def build_feed(self):
+ qs = Entry.objects.filter(status__exact=1)
+ c = Context({'object_list': qs, 'SITE_URL': settings.SITE_URL})
+ t = render_to_string('feed.xml', c).encode('utf-8')
+ fpath = '%s' % ('/src/rss/',)
+ self.write_file(fpath, t, 'xml')