survex_file field inconsistency detection & edit

This commit is contained in:
Philip Sargent
2021-04-02 23:21:23 +01:00
parent bd8d59b343
commit 52c1dabd0e
7 changed files with 120 additions and 47 deletions

View File

@@ -189,7 +189,8 @@ class Cave(TroggleModel):
subprocess.call(settings.FIX_PERMISSIONS)
f = open(os.path.join(settings.CAVEDESCRIPTIONS, self.filename), "wb")
t = loader.get_template('dataformat/cave.xml')
c = Context({'cave': self})
#c = Context({'cave': self})
c = dict({'cave': self})
u = t.render(c)
u8 = u.encode("utf-8")
f.write(u8)