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

refactor & git author work

This commit is contained in:
2024-12-29 03:42:58 +00:00
parent 13c5d14a9f
commit 6d2484376a
6 changed files with 64 additions and 130 deletions

View File

@@ -11,7 +11,7 @@ import settings
from troggle.core.models.logbooks import QM
from troggle.core.models.survex import SurvexStation, utmToLatLng
from troggle.core.models.troggle import DataIssue, TroggleModel
from troggle.core.utils import TROG, parse_aliases #, writetrogglefile
from troggle.core.utils import TROG, parse_aliases
# Use the TROG global object to cache the cave lookup list. No good for multi-user.., or even multi-page. Pointless in fact.
Gcavelookup = TROG["caves"]["gcavelookup"]
@@ -224,11 +224,6 @@ class Cave(TroggleModel):
content = t.render(c)
return (filepath, content, "utf8")
# def writeDataFile(self):
# filepath, content, coding = self.file_output()
# writetrogglefile(filepath, content)
# return
class Entrance(TroggleModel):
MARKING_CHOICES = (
("P", "Paint"),
@@ -406,11 +401,6 @@ class Entrance(TroggleModel):
content = t.render(c)
return (filepath, content, "utf8")
# def writeDataFile(self):
# filepath, content, coding = self.file_output()
# writetrogglefile(filepath, content)
# return
def url_parent(self):
if self.url:
return self.url.rsplit("/", 1)[0]