summaryrefslogtreecommitdiff
path: root/app/builder/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-16 20:58:58 -0500
committerluxagraf <sng@luxagraf.net>2015-11-16 20:58:58 -0500
commit28eeebc3f58b4798d878806dd72f35464e503559 (patch)
tree776bc7a45c5f566a75b44c1591894fb3fe2d74b3 /app/builder/views.py
parentc7ab2a81799c815186b2c3c5c71f8d774dc31d32 (diff)
updated build tool to use new jrnl build system
Diffstat (limited to 'app/builder/views.py')
-rw-r--r--app/builder/views.py24
1 files changed, 5 insertions, 19 deletions
diff --git a/app/builder/views.py b/app/builder/views.py
index 7057543..158b505 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -2,6 +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
options = {
'writing': BuildWriting,
@@ -17,25 +18,15 @@ options = {
def do_build(request):
section = request.GET.get('id', '')
context = {}
- if section == 'newpost':
- BuildWriting().build()
- BuildMap().build()
- BuildWritingFeed().build()
- BuildSitemap().build()
- context = {'message': 'Writing %s to Disk' % section}
- elif section == 'builddetails':
+ if section == 'builddetails':
context = {'message': 'Writing Jrnl Permalinks to Disk'}
- BuildWriting().build_detail_pages()
+ BuildJrnl().build_detail_view()
elif section == 'writingarchives':
context = {'message': 'Writing Jrnl Archives to Disk'}
- BuildWriting().build_writing_archives()
- BuildWriting().build_country_archive_pages()
- BuildWriting().build_region_archive_pages()
- BuildWriting().writing_year_archives()
- BuildWriting().writing_month_archives()
+ BuildJrnl().build_arc()
elif section == 'buildrss':
context = {'message': 'Writing RSS to Disk'}
- BuildWritingFeed().build()
+ BuildJrnl().build_feed("jrnl:feed")
elif section == 'homepage':
context = {'message': 'Writing index to Disk'}
BuildWriting().build_homepage()
@@ -45,11 +36,6 @@ def do_build(request):
elif section == 'src':
context = {'message': 'Writing src section to Disk'}
src_build()
- elif section == 'scrapeflickr':
- from photos.retriever import SyncFlickr
- f = SyncFlickr()
- f.sync_sets()
- context = {'message': 'Crawling Flickr for new photosets'}
else:
options[section]().build()
context = {'message': 'Writing %s to Disk' % section}