mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:57:14 +00:00
rename TUNNEL_DATA as DRAWINGS_DATA
This commit is contained in:
@@ -179,7 +179,7 @@ def settherionfileinfo(filetuple):
|
||||
'''
|
||||
thtype, therionfile = filetuple
|
||||
|
||||
ff = os.path.join(settings.TUNNEL_DATA, therionfile.dwgpath)
|
||||
ff = os.path.join(settings.DRAWINGS_DATA, therionfile.dwgpath)
|
||||
therionfile.filesize = os.stat(ff)[stat.ST_SIZE]
|
||||
if therionfile.filesize <= 0:
|
||||
message = "! Zero length therion file {}".format(ff)
|
||||
@@ -229,7 +229,7 @@ def setdwgfileinfo(dwgfile):
|
||||
Should try to read the date too e.g. tunneldate="2010-08-16 22:51:57
|
||||
then we could display on the master calendar per expo.
|
||||
'''
|
||||
ff = os.path.join(settings.TUNNEL_DATA, dwgfile.dwgpath)
|
||||
ff = os.path.join(settings.DRAWINGS_DATA, dwgfile.dwgpath)
|
||||
dwgfile.filesize = os.stat(ff)[stat.ST_SIZE]
|
||||
if dwgfile.filesize <= 0:
|
||||
message = "! Zero length xml file {}".format(ff)
|
||||
@@ -260,7 +260,7 @@ def load_drawings_files():
|
||||
'''Breadth first search of drawings directory looking for sub-directories and *.xml filesize
|
||||
'''
|
||||
all_xml = []
|
||||
drawdatadir = settings.TUNNEL_DATA
|
||||
drawdatadir = settings.DRAWINGS_DATA
|
||||
DrawingFile.objects.all().delete()
|
||||
DataIssue.objects.filter(parser='Drawings').delete()
|
||||
DataIssue.objects.filter(parser='Therion').delete()
|
||||
|
||||
Reference in New Issue
Block a user