Skip to content

Commit d6ae5a2

Browse files
committed
Debug statements
1 parent bb6a4cb commit d6ae5a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

partial_load/loader.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ def render_template_blocks(template, block_list, context):
2020

2121
def render_template_blocks_nodelist(nodelist, block_list, context):
2222
block_map = {}
23-
23+
24+
print "nodelist: %s" % nodelist
25+
2426
for node in nodelist:
27+
print "node name: %s" % node.name
28+
2529
if isinstance(node, BlockNode) and node.name in block_list:
2630
block_map.setdefault(node.name, node.render(context))
2731

@@ -32,6 +36,7 @@ def render_template_blocks_nodelist(nodelist, block_list, context):
3236
except:
3337
pass
3438
else:
39+
print "inner_block_map 1: %s" % inner_block_map
3540
block_map.update(inner_block_map)
3641
inner_block_map = {}
3742

@@ -42,6 +47,7 @@ def render_template_blocks_nodelist(nodelist, block_list, context):
4247
except BlockNotFound:
4348
pass
4449
else:
50+
print "inner_block_map 2: %s" % inner_block_map
4551
block_map.update(inner_block_map)
4652

4753
return block_map

0 commit comments

Comments
 (0)