110 if self.pdata["EOL"] and self.pdata["EOL"][0]: |
110 if self.pdata["EOL"] and self.pdata["EOL"][0]: |
111 self.writeEmptyElement("Eol") |
111 self.writeEmptyElement("Eol") |
112 self.writeAttribute("index", str(int(self.pdata["EOL"][0]))) |
112 self.writeAttribute("index", str(int(self.pdata["EOL"][0]))) |
113 |
113 |
114 # do the sources |
114 # do the sources |
|
115 # TODO: write in sorted order |
115 self.writeStartElement("Sources") |
116 self.writeStartElement("Sources") |
116 for name in self.pdata["SOURCES"]: |
117 for name in self.pdata["SOURCES"]: |
117 self.writeTextElement( |
118 self.writeTextElement( |
118 "Source", Utilities.fromNativeSeparators(name)) |
119 "Source", Utilities.fromNativeSeparators(name)) |
119 self.writeEndElement() |
120 self.writeEndElement() |
120 |
121 |
121 # do the forms |
122 # do the forms |
|
123 # TODO: write in sorted order |
122 self.writeStartElement("Forms") |
124 self.writeStartElement("Forms") |
123 for name in self.pdata["FORMS"]: |
125 for name in self.pdata["FORMS"]: |
124 self.writeTextElement("Form", Utilities.fromNativeSeparators(name)) |
126 self.writeTextElement("Form", Utilities.fromNativeSeparators(name)) |
125 self.writeEndElement() |
127 self.writeEndElement() |
126 |
128 |
127 # do the translations |
129 # do the translations |
|
130 # TODO: write in sorted order |
128 self.writeStartElement("Translations") |
131 self.writeStartElement("Translations") |
129 for name in self.pdata["TRANSLATIONS"]: |
132 for name in self.pdata["TRANSLATIONS"]: |
130 self.writeTextElement( |
133 self.writeTextElement( |
131 "Translation", Utilities.fromNativeSeparators(name)) |
134 "Translation", Utilities.fromNativeSeparators(name)) |
132 self.writeEndElement() |
135 self.writeEndElement() |
133 |
136 |
134 # do the translation exceptions |
137 # do the translation exceptions |
|
138 # TODO: write in sorted order |
135 if self.pdata["TRANSLATIONEXCEPTIONS"]: |
139 if self.pdata["TRANSLATIONEXCEPTIONS"]: |
136 self.writeStartElement("TranslationExceptions") |
140 self.writeStartElement("TranslationExceptions") |
137 for name in self.pdata["TRANSLATIONEXCEPTIONS"]: |
141 for name in self.pdata["TRANSLATIONEXCEPTIONS"]: |
138 self.writeTextElement( |
142 self.writeTextElement( |
139 "TranslationException", |
143 "TranslationException", |
140 Utilities.fromNativeSeparators(name)) |
144 Utilities.fromNativeSeparators(name)) |
141 self.writeEndElement() |
145 self.writeEndElement() |
142 |
146 |
143 # do the resources |
147 # do the resources |
|
148 # TODO: write in sorted order |
144 self.writeStartElement("Resources") |
149 self.writeStartElement("Resources") |
145 for name in self.pdata["RESOURCES"]: |
150 for name in self.pdata["RESOURCES"]: |
146 self.writeTextElement( |
151 self.writeTextElement( |
147 "Resource", Utilities.fromNativeSeparators(name)) |
152 "Resource", Utilities.fromNativeSeparators(name)) |
148 self.writeEndElement() |
153 self.writeEndElement() |
149 |
154 |
150 # do the interfaces (IDL) |
155 # do the interfaces (IDL) |
|
156 # TODO: write in sorted order |
151 self.writeStartElement("Interfaces") |
157 self.writeStartElement("Interfaces") |
152 for name in self.pdata["INTERFACES"]: |
158 for name in self.pdata["INTERFACES"]: |
153 self.writeTextElement( |
159 self.writeTextElement( |
154 "Interface", Utilities.fromNativeSeparators(name)) |
160 "Interface", Utilities.fromNativeSeparators(name)) |
155 self.writeEndElement() |
161 self.writeEndElement() |
156 |
162 |
157 # do the others |
163 # do the others |
|
164 # TODO: write in sorted order |
158 self.writeStartElement("Others") |
165 self.writeStartElement("Others") |
159 for name in self.pdata["OTHERS"]: |
166 for name in self.pdata["OTHERS"]: |
160 self.writeTextElement( |
167 self.writeTextElement( |
161 "Other", Utilities.fromNativeSeparators(name)) |
168 "Other", Utilities.fromNativeSeparators(name)) |
162 self.writeEndElement() |
169 self.writeEndElement() |