diff -r d73b64672238 -r acf02488f37f xmlclass/xmlclass.py --- a/xmlclass/xmlclass.py Wed Aug 16 12:48:08 2017 +0300 +++ b/xmlclass/xmlclass.py Wed Aug 16 12:53:23 2017 +0300 @@ -1655,6 +1655,7 @@ def generateSetChoiceByTypeMethod(factory, choice_types): choices = dict([(choice["name"], choice) for choice in choice_types]) + def setChoiceMethod(self, content_type): if not choices.has_key(content_type): raise ValueError("Unknown \"%s\" choice type for \"content\"!" % content_type) @@ -1668,6 +1669,7 @@ def generateAppendChoiceByTypeMethod(maxOccurs, factory, choice_types): choices = dict([(choice["name"], choice) for choice in choice_types]) + def appendChoiceMethod(self, content_type): if not choices.has_key(content_type): raise ValueError("Unknown \"%s\" choice type for \"content\"!" % content_type) @@ -1684,6 +1686,7 @@ def generateInsertChoiceByTypeMethod(maxOccurs, factory, choice_types): choices = dict([(choice["name"], choice) for choice in choice_types]) + def insertChoiceMethod(self, index, content_type): if not choices.has_key(content_type): raise ValueError("Unknown \"%s\" choice type for \"content\"!" % content_type)