*** empty log message ***
authoretisserant
Mon, 10 Sep 2007 08:37:04 +0200
changeset 87 ce2607713931
parent 86 4f1dbdb0bed2
child 88 bac6435df86f
*** empty log message ***
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"]))