plcopen/structures.py
changeset 1297 cd639725fba5
parent 1283 f3cfe1ff917e
child 1298 f034fb2b1aab
--- a/plcopen/structures.py	Thu Aug 29 19:48:29 2013 +0200
+++ b/plcopen/structures.py	Fri Aug 30 09:18:41 2013 +0200
@@ -42,7 +42,7 @@
         return mylist
 
 def generate_block(generator, block, block_infos, body, link, order=False, to_inout=False):
-    body_type = body.getcontent()["name"]
+    body_type = body.getcontent().getLocalTag()
     name = block.getinstanceName()
     type = block.gettypeName()
     executionOrderId = block.getexecutionOrderId()