Mercurial > piecrust2
comparison piecrust/processing/base.py @ 126:e5cba2622d26
Check we don't give null values to the processing pipeline.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 14 Nov 2014 22:46:16 +0100 |
parents | 133845647083 |
children | 3080b6d02f40 |
comparison
equal
deleted
inserted
replaced
125:c77062233ba5 | 126:e5cba2622d26 |
---|---|
107 | 107 |
108 | 108 |
109 class ProcessorPipeline(object): | 109 class ProcessorPipeline(object): |
110 def __init__(self, app, mounts, out_dir, force=False, | 110 def __init__(self, app, mounts, out_dir, force=False, |
111 skip_patterns=None, force_patterns=None, num_workers=4): | 111 skip_patterns=None, force_patterns=None, num_workers=4): |
112 assert app and out_dir | |
112 self.app = app | 113 self.app = app |
113 self.mounts = mounts | 114 self.mounts = mounts |
114 tmp_dir = app.cache_dir | 115 tmp_dir = app.cache_dir |
115 if not tmp_dir: | 116 if not tmp_dir: |
116 import tempfile | 117 import tempfile |