mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
f8a619a97d
commit
3d4d390bd9
|
@ -115,13 +115,16 @@ def htmlConfirmRemoveSharedItem(cssCache: {}, translate: {}, baseDir: str,
|
||||||
if not os.path.isfile(sharesFile):
|
if not os.path.isfile(sharesFile):
|
||||||
print('ERROR: no shares file ' + sharesFile)
|
print('ERROR: no shares file ' + sharesFile)
|
||||||
return None
|
return None
|
||||||
|
print('Shared item ID 3: ' + itemID)
|
||||||
sharesJson = loadJson(sharesFile)
|
sharesJson = loadJson(sharesFile)
|
||||||
if not sharesJson:
|
if not sharesJson:
|
||||||
print('ERROR: unable to load shares.json')
|
print('ERROR: unable to load shares.json')
|
||||||
return None
|
return None
|
||||||
|
print('Shared item ID 4: ' + itemID)
|
||||||
if not sharesJson.get(itemID):
|
if not sharesJson.get(itemID):
|
||||||
print('ERROR: share named "' + itemID + '" is not in ' + sharesFile)
|
print('ERROR: share named "' + itemID + '" is not in ' + sharesFile)
|
||||||
return None
|
return None
|
||||||
|
print('Shared item ID 5: ' + itemID)
|
||||||
sharedItemDisplayName = sharesJson[itemID]['displayName']
|
sharedItemDisplayName = sharesJson[itemID]['displayName']
|
||||||
sharedItemImageUrl = None
|
sharedItemImageUrl = None
|
||||||
if sharesJson[itemID].get('imageUrl'):
|
if sharesJson[itemID].get('imageUrl'):
|
||||||
|
@ -164,6 +167,7 @@ def htmlConfirmRemoveSharedItem(cssCache: {}, translate: {}, baseDir: str,
|
||||||
sharesStr += ' </div>\n'
|
sharesStr += ' </div>\n'
|
||||||
sharesStr += '</div>\n'
|
sharesStr += '</div>\n'
|
||||||
sharesStr += htmlFooter()
|
sharesStr += htmlFooter()
|
||||||
|
print('Shared item ID 6: ' + itemID)
|
||||||
return sharesStr
|
return sharesStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue