summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-07 21:50:39 -0500
committerluxagraf <sng@luxagraf.net>2016-02-07 21:50:39 -0500
commit5c995b68087b5a672cf1fa03d19038f7fbea888f (patch)
tree3fbd0eef8452a17ef04ebb752fe69a0d2d5801fe
parent09756d90d71711749512af471f2faf1f57cc639f (diff)
fixed rss feed builder
-rw-r--r--app/builder/views.py4
-rw-r--r--app/jrnl/build.py5
2 files changed, 7 insertions, 2 deletions
diff --git a/app/builder/views.py b/app/builder/views.py
index a528197..fd62808 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -2,7 +2,7 @@ from django.shortcuts import render_to_response
from django.template import RequestContext
from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages
from src.build import builder as src_builder
-from jrnl.build import BuildJrnl, archive_builder, detail_builder, home_builder
+from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder
from resume.build import builder as resume_builder
from books.build import builder as book_builder
from photos.build import builder as photo_builder
@@ -33,7 +33,7 @@ def do_build(request):
resume_builder()
elif section == 'buildrss':
context = {'message': 'Writing RSS to Disk'}
- BuildJrnl().build_feed("jrnl:feed")
+ rss_builder()
elif section == 'homepage':
context = {'message': 'Writing index to Disk'}
home_builder()
diff --git a/app/jrnl/build.py b/app/jrnl/build.py
index 3dfdbb6..872bc15 100644
--- a/app/jrnl/build.py
+++ b/app/jrnl/build.py
@@ -70,3 +70,8 @@ def detail_builder():
def home_builder():
j = BuildJrnl("jrnl", "entry")
j.build_homepage()
+
+
+def rss_builder():
+ j = BuildJrnl("jrnl", "entry")
+ j.build_feed("jrnl:feed")