changeset 31:89a72b2fd149

merge from head
author egj@socialplanning.org
date Tue, 02 Feb 2010 18:04:02 +0000
parents 81607129a45e (diff) ffd661a0f169 (current diff)
children 527ccb76d043
files decoupage/web.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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