From 5bb96d4c2c8b42474953ca29d2422b3be60da25b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 9 May 2011 16:22:25 -0400 Subject: updated styles and templates for revamped design --- apps/build/base.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apps/build') 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 -- cgit v1.2.3-70-g09d2