[files] [cleanup/redesign] removed the old file_list structure and also added file listing in setup

This commit is contained in:
Rushabh Mehta 2013-04-10 14:20:56 +05:30
parent 9e93037119
commit cc887a8320

View File

@ -32,7 +32,11 @@ def update_for_doc(doctype, doc):
if not filedata:
continue
filename, fileid = filedata.split(",")
filedata = filedata.split(",")
if len(filedata)==2:
filename, fileid = filedata[0], filedata[1]
else:
continue
exists = True
if not (filename.startswith("http://") or filename.startswith("https://")):