diff piecrust/pipelines/base.py @ 877:d6d35b2efd04

bake: Rename "pass" to "step" and make the page pipeline use different steps. That pipeline is now first loading all pages, and then rendering full pages unless they trigger a sub-render.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 15 Jun 2017 22:16:23 -0700
parents d1095774bfcf
children 8adc27285d93
line wrap: on
line diff
--- a/piecrust/pipelines/base.py	Thu Jun 15 07:33:40 2017 -0700
+++ b/piecrust/pipelines/base.py	Thu Jun 15 22:16:23 2017 -0700
@@ -39,14 +39,15 @@
         self.source_name = pipeline.source.name
         self.record_name = pipeline.record_name
         self.content_item = content_item
+        self.step_num = 0
         self.data = {}
 
 
 class PipelineJobCreateContext:
     """ Context for create pipeline baking jobs.
     """
-    def __init__(self, pass_num, record_histories):
-        self.pass_num = pass_num
+    def __init__(self, step_num, record_histories):
+        self.step_num = step_num
         self.record_histories = record_histories
 
 
@@ -82,17 +83,17 @@
     """
     def __init__(self):
         self.record_entry = None
-        self.next_pass_job = None
+        self.next_step_job = None
 
 
 class PipelineMergeRecordContext:
     """ The context for merging a record entry for a second or higher pass
         into the bake record.
     """
-    def __init__(self, record, job, pass_num):
+    def __init__(self, record, job, step_num):
         self.record = record
         self.job = job
-        self.pass_num = pass_num
+        self.step_num = step_num
 
 
 class PipelinePostJobRunContext: