diff options
Diffstat (limited to 'app/builder/views.py')
-rw-r--r-- | app/builder/views.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index a32d384..7203d41 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -1,7 +1,6 @@ from django.shortcuts import render from django.template import RequestContext from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap -from src.build import builder as src_builder from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder, map_builder from resume.build import pub_builder, resume_builder from books.build import builder as book_builder @@ -11,7 +10,7 @@ from notes.build import builder as notes_builder from pages.build import builder as page_builder from fieldnotes.build import builder as fieldnotes_builder from photos.build import dailybuilder -from posts.build import posts_builder +from posts.build import src_builder, guide_builder options = { 'writing': BuildWriting, @@ -55,18 +54,15 @@ def do_build(request): elif section == 'src': context = {'message': 'Writing src section to Disk'} src_builder() + elif section == 'guide': + context = {'message': 'Writing guide section to Disk'} + guide_builder() elif section == 'luxphotos': context = {'message': 'Writing galleries to Disk'} photo_builder() - elif section == 'dailyphotos': - context = {'message': 'Writing galleries to Disk'} - photo_builder() elif section == 'figments': context = {'message': 'Writing figments to Disk'} figments_builder() - elif section == 'notes': - context = {'message': 'Writing notes to Disk'} - notes_builder() elif section == 'pages': context = {'message': 'Writing Pages to Disk'} page_builder() @@ -76,9 +72,6 @@ def do_build(request): elif section == 'fieldnotes': context = {'message': 'Writing FieldNotes to Disk'} fieldnotes_builder() - elif section == 'buildposts': - context = {'message': 'Writing Posts to Disk'} - posts_builder() else: options[section]().build() context = {'message': 'Writing %s to Disk' % section} |