forked from expo/troggle
Merge 'expofiles' instead of 'expoimages' config changes
This commit is contained in:
commit
b9597fbb57
@ -33,8 +33,8 @@ CAVERN = 'cavern'
|
||||
THREEDTOPOS = '3dtopos'
|
||||
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
|
||||
SURVEYS = REPOS_ROOT_PATH
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
|
||||
FILES = REPOS_ROOT_PATH + 'expoimages'
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expofiles/'
|
||||
FILES = REPOS_ROOT_PATH + 'expofiles'
|
||||
|
||||
|
||||
PYTHON_PATH = '/home/expo/troggle/'
|
||||
|
@ -31,8 +31,8 @@ CAVERN = 'cavern'
|
||||
THREEDTOPOS = '3dtopos'
|
||||
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
|
||||
SURVEYS = REPOS_ROOT_PATH
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
|
||||
FILES = REPOS_ROOT_PATH + 'expoimages'
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expofiles/'
|
||||
FILES = REPOS_ROOT_PATH + 'expofiles'
|
||||
|
||||
|
||||
PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/'
|
||||
|
@ -30,8 +30,8 @@ CAVERN = 'cavern'
|
||||
THREEDTOPOS = '3dtopos'
|
||||
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
|
||||
SURVEYS = REPOS_ROOT_PATH
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
|
||||
FILES = REPOS_ROOT_PATH + 'expoimages'
|
||||
SURVEY_SCANS = REPOS_ROOT_PATH + 'expofiles/'
|
||||
FILES = REPOS_ROOT_PATH + 'expofiles'
|
||||
|
||||
EXPOWEB_URL = '/'
|
||||
SURVEYS_URL = '/survey_scans/'
|
||||
|
@ -129,11 +129,11 @@ def parseSurveyScans(expedition, logfile=None):
|
||||
survey=survey,
|
||||
new_since_parsing=False,
|
||||
)
|
||||
#print "Added scanned image at " + str(scanObj)
|
||||
if scanFormat=="png":
|
||||
if isInterlacedPNG(os.path.join(settings.SURVEY_SCANS, "surveyscans", file_)):
|
||||
print file_+ " is an interlaced PNG. No can do."
|
||||
continue
|
||||
print "Added scanned image at " + str(scanObj)
|
||||
#if scanFormat=="png":
|
||||
#if isInterlacedPNG(os.path.join(settings.SURVEY_SCANS, "surveyscans", file_)):
|
||||
# print file_+ " is an interlaced PNG. No can do."
|
||||
#continue
|
||||
scanObj.save()
|
||||
|
||||
# dead
|
||||
|
Loading…
Reference in New Issue
Block a user