mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 11:37:11 +00:00
unravelling writetrogglefiles
This commit is contained in:
@@ -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 #, writetrogglefile
|
||||
|
||||
# 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,10 +224,10 @@ class Cave(TroggleModel):
|
||||
content = t.render(c)
|
||||
return (filepath, content, "utf8")
|
||||
|
||||
def writeDataFile(self):
|
||||
filepath, content, coding = self.file_output()
|
||||
writetrogglefile(filepath, content)
|
||||
return
|
||||
# def writeDataFile(self):
|
||||
# filepath, content, coding = self.file_output()
|
||||
# writetrogglefile(filepath, content)
|
||||
# return
|
||||
|
||||
class Entrance(TroggleModel):
|
||||
MARKING_CHOICES = (
|
||||
@@ -406,10 +406,10 @@ 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 writeDataFile(self):
|
||||
# filepath, content, coding = self.file_output()
|
||||
# writetrogglefile(filepath, content)
|
||||
# return
|
||||
|
||||
def url_parent(self):
|
||||
if self.url:
|
||||
|
||||
Reference in New Issue
Block a user