ProcessingState: Document monkey patching.

This commit is contained in:
Elrond 2013-01-24 10:23:38 +01:00
parent 93b14fc300
commit e382792637

View File

@ -81,6 +81,16 @@ class ProcessingState(object):
self.queued_filename = None
# Monkey patch us onto the entry
# This is needed to keep the current calling convention
# for processors:
# def process_FOO(entry):
# proc_state = entry.proc_state
# workbench = proc_state.workbench
# When all processors use the new stuff, they should be
# rewritten:
# def process_FOO(proc_state):
# entry = proc_state.entry
# workbench = proc_state.workbench
entry.proc_state = self
def set_workbench(self, wb):