diff piecrust/processing/records.py @ 191:308d5180bf81

processing: Add more information to the pipeline record. We now save whether an asset was processed by an external tool that bypasses the pipeline, and the tree of processor names involved.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 11 Jan 2015 23:01:21 -0800
parents 9e4c2e68a129
children a47580a0955b
line wrap: on
line diff
--- a/piecrust/processing/records.py	Sun Jan 11 22:58:38 2015 -0800
+++ b/piecrust/processing/records.py	Sun Jan 11 23:01:21 2015 -0800
@@ -3,7 +3,7 @@
 
 
 class ProcessorPipelineRecord(Record):
-    RECORD_VERSION = 2
+    RECORD_VERSION = 3
 
     def __init__(self):
         super(ProcessorPipelineRecord, self).__init__()
@@ -34,6 +34,7 @@
 FLAG_NONE = 0
 FLAG_PROCESSED = 2**0
 FLAG_OVERRIDEN = 2**1
+FLAG_BYPASSED_STRUCTURED_PROCESSING = 2**2
 
 
 class ProcessorPipelineRecordEntry(object):
@@ -43,6 +44,7 @@
 
         self.flags = FLAG_NONE
         self.rel_outputs = []
+        self.proc_tree = None
         self.errors = []
 
     @property