# HG changeset patch # User egj@socialplanning.org # Date 1265133842 0 # Node ID 89a72b2fd149bffcebd6c1fefb10e56c7ba3e34d # Parent 81607129a45e631a9c87caa19dc4ef5564ef6ab5# Parent ffd661a0f16911c8c0111750875bbd46a3419cfd merge from head diff -r ffd661a0f169 -r 89a72b2fd149 decoupage/web.py --- a/decoupage/web.py Tue Jan 19 11:18:25 2010 -0500 +++ b/decoupage/web.py Tue Feb 02 18:04:02 2010 +0000 @@ -40,7 +40,9 @@ self.directory = self.directory.rstrip(os.path.sep) assert os.path.isdir(self.directory) self.template_directories = self.template_directories.split() # no spaces in directory names, for now - assert sum([os.path.isdir(directory) for directory in self.template_directories]) == len(self.template_directories) + + for directory in self.template_directories: + assert os.path.isdir(directory), "Decoupage template directory %s does not exist!" % directory # static file server self.fileserver = FileApp