blob: 0478eb9f7e75d7d9d0c786bbca75bba9793fc9de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
from django.shortcuts import render_to_response
from pages.build import builder as page_builder
from builder.base import BuildSitemap, BuildRSS
from blog.build import essaybuilder, homebuilder
from links.build import linkbuilder
def do_build(request):
section = request.GET.get('id', '')
context = {}
if section == 'essays':
context = {'message': 'Writing Essays to Disk'}
essaybuilder()
if section == 'links':
context = {'message': 'Writing Links to Disk'}
linkbuilder()
if section == 'pages':
context = {'message': 'Writing Pages to Disk'}
page_builder()
if section == 'home':
context = {'message': 'Writing Homepage to Disk'}
homebuilder()
if section == 'sitemap':
context = {'message': 'Writing Sitemap to Disk'}
j = BuildSitemap("blog", "Entry")
j.build()
if section == 'buildrss':
context = {'message': 'Writing RSS feed to Disk'}
j = BuildRSS("blog", "Entry")
j.build()
return render_to_response('admin/message.html', context)
|