CLOUD: Refactor LocalWebserver

Its handlers are now more compact. This commit moves Handler classes in
handlers\ directory.

ResourceHandler ignores "hidden" files in the archive, and these are
used as markup templates in IndexPageHandler and FilesPageHandler.
This commit is contained in:
Alexander Tkachev 2016-07-06 16:48:56 +06:00
parent 627bda9d82
commit 48e3fff6bc
18 changed files with 665 additions and 358 deletions

View file

@ -20,7 +20,7 @@ def buildArchive(archiveName):
filenames = os.listdir('.')
filenames.sort()
for filename in filenames:
if os.path.isfile(filename) and not filename[0] == '.' and filename.endswith(ARCHIVE_FILE_EXTENSIONS):
if os.path.isfile(filename) and filename.endswith(ARCHIVE_FILE_EXTENSIONS):
zf.write(filename, './' + filename)
print (" Adding file: " + filename)