diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/views.py | 6 | ||||
-rw-r--r-- | app/jrnl/build.py | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index 158b505..9e22160 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, BuildBooks from src.build import builder as src_build -from jrnl.build import BuildJrnl +from jrnl.build import BuildJrnl, build_arc, build_detail options = { 'writing': BuildWriting, @@ -20,10 +20,10 @@ def do_build(request): context = {} if section == 'builddetails': context = {'message': 'Writing Jrnl Permalinks to Disk'} - BuildJrnl().build_detail_view() + build_detail() elif section == 'writingarchives': context = {'message': 'Writing Jrnl Archives to Disk'} - BuildJrnl().build_arc() + build_arc() elif section == 'buildrss': context = {'message': 'Writing RSS to Disk'} BuildJrnl().build_feed("jrnl:feed") diff --git a/app/jrnl/build.py b/app/jrnl/build.py index 0f0572b..6d5b0f6 100644 --- a/app/jrnl/build.py +++ b/app/jrnl/build.py @@ -54,6 +54,11 @@ class BuildJrnl(BuildNew): self.write_file(base_path, response.content) -def builder(): +def build_arc(): j = BuildJrnl("jrnl", "entry") - j.build() + j.build_arc() + + +def build_detail(): + j = BuildJrnl("jrnl", "entry") + j.build_detail_view() |