summaryrefslogtreecommitdiff
path: root/apps/build
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2011-05-09 16:22:25 -0400
committerluxagraf <sng@luxagraf.net>2011-05-09 16:22:25 -0400
commit5bb96d4c2c8b42474953ca29d2422b3be60da25b (patch)
tree959adb3e57c0baf54f56253e5347f45960439b97 /apps/build
parent261b92d06de346cd5a6d18b9bdf38ee7084960ab (diff)
updated styles and templates for revamped design
Diffstat (limited to 'apps/build')
-rw-r--r--apps/build/base.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/build/base.py b/apps/build/base.py
index 6021532..afcc8f8 100644
--- a/apps/build/base.py
+++ b/apps/build/base.py
@@ -14,7 +14,13 @@ class Build():
file = open(path, 'w')
file.write(object)
file.close()
-
+
+class BuildSitemap(Build):
+ def build(self):
+ c = Client()
+ response = c.get('/sitemap.xml')
+ fpath = '%ssitemap.xml' %(settings.BAKED_ROOT)
+ self.write_file(fpath,str(response.content))
class BuildWriting(Build):
@@ -230,5 +236,3 @@ class BuildProjects(Build):
fpath = '%s%s.json' %(path, park.id)
self.write_file(fpath,json)
-
- \ No newline at end of file