summaryrefslogtreecommitdiff
path: root/bak/unused_apps/people/build.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-05 15:31:37 -0500
committerluxagraf <sng@luxagraf.net>2023-11-05 15:32:09 -0500
commit9f1c7ef8a47ee1a2df40ce1f57df105af8b99cc1 (patch)
tree87ce20ec1e7f81ca34db0869b4e2f59626cce1bf /bak/unused_apps/people/build.py
parent91eea81c7314078114bb21bb4b0118fba093e2f6 (diff)
people: messing with addressbook again
Diffstat (limited to 'bak/unused_apps/people/build.py')
-rw-r--r--bak/unused_apps/people/build.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/bak/unused_apps/people/build.py b/bak/unused_apps/people/build.py
deleted file mode 100644
index 35fdb19..0000000
--- a/bak/unused_apps/people/build.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import os
-from django.urls import reverse
-from builder.base import BuildNew
-
-
-class BuildBooks(BuildNew):
-
- def build(self):
- self.build_detail_view()
- self.build_list_view(
- base_path=reverse("books:live_redirect"),
- paginate_by=24
- )
- print("building books")
-
- def get_model_queryset(self):
- return self.model.objects.all()
-
- def build_detail_view(self):
- '''
- write out all the expenses for each trip
- '''
- for obj in self.get_model_queryset():
- url = obj.get_absolute_url()
- path, slug = os.path.split(url)
- path = '%s/' % path
- # write html
- response = self.client.get(url)
- print(path, slug)
- self.write_file(path, response.content, filename=slug)
-
-
-def builder():
- j = BuildBooks("books", "book")
- j.build()