Package madrona :: Package common :: Module utils :: Class KMZUtil
[hide private]

Class KMZUtil

source code

Recursively adds a directory to a zipfile modified from http://stackoverflow.com/questions/458436/adding-folders-to-a-zip-file-using-python

from madrona.common.utils import ZipUtil zu = ZipUtil() filename = 'TEMP.zip' directory = 'kmldir' # containing doc.kml, etc zu.toZip(directory, filename)

Instance Methods [hide private]
 
toZip(self, file, filename) source code
 
addFolderToZip(self, zip_file, folder) source code