summaryrefslogtreecommitdiff
path: root/app/jrnl/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/build.py')
-rw-r--r--app/jrnl/build.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/jrnl/build.py b/app/jrnl/build.py
index 1bc5d3e..0354470 100644
--- a/app/jrnl/build.py
+++ b/app/jrnl/build.py
@@ -3,6 +3,7 @@ from django.apps import apps
from builder.base import BuildNew
from itertools import chain
+from django.conf import settings
class BuildJrnl(BuildNew):
@@ -56,6 +57,16 @@ class BuildJrnl(BuildNew):
response = self.client.get('/')
self.write_file('', response.content)
+ def build_map(self):
+ self.build_list_view(
+ base_path=reverse("locations:maplist"),
+ paginate_by=1000000
+ )
+ url = "/media/js/mainmap.js"
+ response = self.client.get("/media/js/mainmap.js", HTTP_HOST='127.0.0.1')
+ self.write_file("media/js/mainmap", response.content, 'js', '')
+
+
def archive_builder():
j = BuildJrnl("jrnl", "entry")
@@ -81,3 +92,7 @@ def amp_builder():
j = BuildJrnl("jrnl", "entry")
j.build_amp_view()
+
+def map_builder():
+ j = BuildJrnl("jrnl", "entry")
+ j.build_map()