summaryrefslogtreecommitdiff
path: root/app/builder/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder/views.py')
-rw-r--r--app/builder/views.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/builder/views.py b/app/builder/views.py
index 04c1285..4d820e2 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -1,14 +1,14 @@
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
-from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap
-from pages.models import PageGenerator
+from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages
+#from pages.models import PageGenerator
options = {
'writing': BuildWriting,
'photo_galleries': BuildPhotos,
'projects': BuildProjects,
- 'pages': PageGenerator,
+ 'pages': BuildPages,
'map': BuildMap,
'feed': BuildWritingFeed,
'sitemap': BuildSitemap,
@@ -24,10 +24,6 @@ def do_build(request):
BuildWritingFeed().build()
BuildSitemap().build()
context = {'message': 'Writing %s to Disk' % section}
- elif section == 'pages':
- p = PageGenerator(settings.PROJ_ROOT + '_pages')
- p.write_files()
- context = {'message': 'Building pages from flatfiles'}
elif section == 'scrapeflickr':
from photos import retriever
retriever.sync_sets()
@@ -36,3 +32,11 @@ def do_build(request):
options[section]().build()
context = {'message': 'Writing %s to Disk' % section}
return render_to_response('admin/message.html', context, context_instance=RequestContext(request))
+
+
+"""
+elif section == 'pages':
+ p = PageGenerator(settings.PROJ_ROOT + '_pages')
+ p.write_files()
+ context = {'message': 'Building pages from flatfiles'}
+"""