summaryrefslogtreecommitdiff
path: root/app/jrnl
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-05-01 16:29:52 -0500
committerluxagraf <sng@luxagraf.net>2017-05-01 16:29:52 -0500
commitc53aeceae4a9867f5f13ee99434138b5b8543a8c (patch)
treec0a92ed819fc8779510a4f569214d24de5251bf0 /app/jrnl
parent02f45fde364b4854b02b797cfcee0cb25543b58e (diff)
fixed map builder
Diffstat (limited to 'app/jrnl')
-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()