Mercurial > piecrust2
comparison piecrust/processing/tree.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 | 3834e2ef0cf2 |
children | a47580a0955b |
comparison
equal
deleted
inserted
replaced
190:430ee5b80962 | 191:308d5180bf81 |
---|---|
272 | 272 |
273 if recursive: | 273 if recursive: |
274 for o in node.outputs: | 274 for o in node.outputs: |
275 print_node(o, None, True) | 275 print_node(o, None, True) |
276 | 276 |
277 | |
278 def get_node_name_tree(node): | |
279 try: | |
280 proc_name = node.getProcessor().PROCESSOR_NAME | |
281 except ProcessorNotFoundError: | |
282 proc_name = 'n/a' | |
283 | |
284 children = [] | |
285 for o in node.outputs: | |
286 if not o.outputs: | |
287 continue | |
288 children.append(get_node_name_tree(o)) | |
289 return (proc_name, children) | |
290 |