2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 05:55:06 +00:00

moving save_carefully()

This commit is contained in:
Philip Sargent
2021-04-13 00:11:08 +01:00
parent b602f3ae13
commit 2a1710596a
7 changed files with 54 additions and 53 deletions

View File

@@ -1,11 +1,13 @@
from django.conf import settings
import troggle.core.models as models
import csv, re, datetime, os, shutil
from utils import save_carefully
from html.parser import HTMLParser
from unidecode import unidecode
'''These functions do not match how the stand-alone script works. So the script produces an HTML file which has
from django.conf import settings
import troggle.core.models as models
from troggle.core.utils import save_carefully
'''These functions do not match how the stand-alone folk script works. So the script produces an HTML file which has
href links to pages in troggle which troggle does not think are right.
The standalone script needs to be renedred defucnt, and all the parsing needs to be in troggle. Either that,
or they should use the same code by importing a module.