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:
parent
627bda9d82
commit
48e3fff6bc
18 changed files with 665 additions and 358 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue