# HG changeset patch # User etisserant # Date 1189406224 -7200 # Node ID ce2607713931f789144b272d9eb809c58176e654 # Parent 4f1dbdb0bed26ea0870f062c59c8c1067f4ce101 *** empty log message *** diff -r 4f1dbdb0bed2 -r ce2607713931 xmlclass/xmlclass.py --- a/xmlclass/xmlclass.py Fri Sep 07 10:27:20 2007 +0200 +++ b/xmlclass/xmlclass.py Mon Sep 10 08:37:04 2007 +0200 @@ -887,8 +887,9 @@ pass elif attr == "choice_content": attr_type = self.getChoices().items() - value = self.content["name"] - children.extend(self.content["value"].getElementInfos(self.content["name"])["children"]) + if self.content: + value = self.content["name"] + children.extend(self.content["value"].getElementInfos(self.content["name"])["children"]) elif attr == "multichoice_content": for element_infos in self.content: children.append(element_infos["value"].getElementInfos(element_infos["name"]))