equal
deleted
inserted
replaced
1184 if connections is not None: |
1184 if connections is not None: |
1185 expression = self.ComputeExpression(transitionBody, connections) |
1185 expression = self.ComputeExpression(transitionBody, connections) |
1186 transition_infos["content"] = [("\n%s:= "%self.CurrentIndent, ())] + expression + [(";\n", ())] |
1186 transition_infos["content"] = [("\n%s:= "%self.CurrentIndent, ())] + expression + [(";\n", ())] |
1187 self.SFCComputedBlocks += self.Program |
1187 self.SFCComputedBlocks += self.Program |
1188 self.Program = [] |
1188 self.Program = [] |
|
1189 if not transition_infos.has_key("content"): |
|
1190 raise PLCGenException, _("Transition \"%s\" body must contain an output variable or coil referring to its name") % transitionValues["value"] |
1189 self.TagName = previous_tagname |
1191 self.TagName = previous_tagname |
1190 elif transitionValues["type"] == "connection": |
1192 elif transitionValues["type"] == "connection": |
1191 body = pou.getbody() |
1193 body = pou.getbody() |
1192 if isinstance(body, ListType): |
1194 if isinstance(body, ListType): |
1193 body = body[0] |
1195 body = body[0] |