59 self.writeAttribute("version", projectFileFormatVersion) |
59 self.writeAttribute("version", projectFileFormatVersion) |
60 |
60 |
61 # do the language (used for spell checking) |
61 # do the language (used for spell checking) |
62 self.writeTextElement("Language", self.pdata["SPELLLANGUAGE"][0]) |
62 self.writeTextElement("Language", self.pdata["SPELLLANGUAGE"][0]) |
63 if len(self.pdata["SPELLWORDS"][0]) > 0: |
63 if len(self.pdata["SPELLWORDS"][0]) > 0: |
64 self.writeTextElement("ProjectWordList", |
64 self.writeTextElement( |
|
65 "ProjectWordList", |
65 Utilities.fromNativeSeparators(self.pdata["SPELLWORDS"][0])) |
66 Utilities.fromNativeSeparators(self.pdata["SPELLWORDS"][0])) |
66 if len(self.pdata["SPELLEXCLUDES"][0]) > 0: |
67 if len(self.pdata["SPELLEXCLUDES"][0]) > 0: |
67 self.writeTextElement("ProjectExcludeList", |
68 self.writeTextElement( |
|
69 "ProjectExcludeList", |
68 Utilities.fromNativeSeparators(self.pdata["SPELLEXCLUDES"][0])) |
70 Utilities.fromNativeSeparators(self.pdata["SPELLEXCLUDES"][0])) |
69 |
71 |
70 # do the hash |
72 # do the hash |
71 self.writeTextElement("Hash", self.pdata["HASH"][0]) |
73 self.writeTextElement("Hash", self.pdata["HASH"][0]) |
72 |
74 |
129 |
131 |
130 # do the translation exceptions |
132 # do the translation exceptions |
131 if self.pdata["TRANSLATIONEXCEPTIONS"]: |
133 if self.pdata["TRANSLATIONEXCEPTIONS"]: |
132 self.writeStartElement("TranslationExceptions") |
134 self.writeStartElement("TranslationExceptions") |
133 for name in self.pdata["TRANSLATIONEXCEPTIONS"]: |
135 for name in self.pdata["TRANSLATIONEXCEPTIONS"]: |
134 self.writeTextElement("TranslationException", |
136 self.writeTextElement( |
|
137 "TranslationException", |
135 Utilities.fromNativeSeparators(name)) |
138 Utilities.fromNativeSeparators(name)) |
136 self.writeEndElement() |
139 self.writeEndElement() |
137 |
140 |
138 # do the resources |
141 # do the resources |
139 self.writeStartElement("Resources") |
142 self.writeStartElement("Resources") |
156 "Other", Utilities.fromNativeSeparators(name)) |
159 "Other", Utilities.fromNativeSeparators(name)) |
157 self.writeEndElement() |
160 self.writeEndElement() |
158 |
161 |
159 # do the main script |
162 # do the main script |
160 if self.pdata["MAINSCRIPT"]: |
163 if self.pdata["MAINSCRIPT"]: |
161 self.writeTextElement("MainScript", |
164 self.writeTextElement( |
|
165 "MainScript", |
162 Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"][0])) |
166 Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"][0])) |
163 |
167 |
164 # do the vcs stuff |
168 # do the vcs stuff |
165 self.writeStartElement("Vcs") |
169 self.writeStartElement("Vcs") |
166 if self.pdata["VCS"]: |
170 if self.pdata["VCS"]: |
190 |
194 |
191 # do the extra project data stuff |
195 # do the extra project data stuff |
192 if len(self.pdata["PROJECTTYPESPECIFICDATA"]): |
196 if len(self.pdata["PROJECTTYPESPECIFICDATA"]): |
193 self.writeStartElement("ProjectTypeSpecific") |
197 self.writeStartElement("ProjectTypeSpecific") |
194 if self.pdata["PROJECTTYPESPECIFICDATA"]: |
198 if self.pdata["PROJECTTYPESPECIFICDATA"]: |
195 self.writeBasics("ProjectTypeSpecificData", |
199 self.writeBasics( |
|
200 "ProjectTypeSpecificData", |
196 self.pdata["PROJECTTYPESPECIFICDATA"]) |
201 self.pdata["PROJECTTYPESPECIFICDATA"]) |
197 self.writeEndElement() |
202 self.writeEndElement() |
198 |
203 |
199 # do the documentation generators stuff |
204 # do the documentation generators stuff |
200 if len(self.pdata["DOCUMENTATIONPARMS"]): |
205 if len(self.pdata["DOCUMENTATIONPARMS"]): |
201 self.writeStartElement("Documentation") |
206 self.writeStartElement("Documentation") |
202 if self.pdata["DOCUMENTATIONPARMS"]: |
207 if self.pdata["DOCUMENTATIONPARMS"]: |
203 self.writeBasics("DocumentationParams", |
208 self.writeBasics( |
204 self.pdata["DOCUMENTATIONPARMS"]) |
209 "DocumentationParams", self.pdata["DOCUMENTATIONPARMS"]) |
205 self.writeEndElement() |
210 self.writeEndElement() |
206 |
211 |
207 # do the packagers stuff |
212 # do the packagers stuff |
208 if len(self.pdata["PACKAGERSPARMS"]): |
213 if len(self.pdata["PACKAGERSPARMS"]): |
209 self.writeStartElement("Packagers") |
214 self.writeStartElement("Packagers") |
210 if self.pdata["PACKAGERSPARMS"]: |
215 if self.pdata["PACKAGERSPARMS"]: |
211 self.writeBasics("PackagersParams", |
216 self.writeBasics( |
212 self.pdata["PACKAGERSPARMS"]) |
217 "PackagersParams", self.pdata["PACKAGERSPARMS"]) |
213 self.writeEndElement() |
218 self.writeEndElement() |
214 |
219 |
215 # do the checkers stuff |
220 # do the checkers stuff |
216 if len(self.pdata["CHECKERSPARMS"]): |
221 if len(self.pdata["CHECKERSPARMS"]): |
217 self.writeStartElement("Checkers") |
222 self.writeStartElement("Checkers") |
218 if self.pdata["CHECKERSPARMS"]: |
223 if self.pdata["CHECKERSPARMS"]: |
219 self.writeBasics("CheckersParams", |
224 self.writeBasics( |
220 self.pdata["CHECKERSPARMS"]) |
225 "CheckersParams", self.pdata["CHECKERSPARMS"]) |
221 self.writeEndElement() |
226 self.writeEndElement() |
222 |
227 |
223 # do the other tools stuff |
228 # do the other tools stuff |
224 if len(self.pdata["OTHERTOOLSPARMS"]): |
229 if len(self.pdata["OTHERTOOLSPARMS"]): |
225 self.writeStartElement("OtherTools") |
230 self.writeStartElement("OtherTools") |
226 if self.pdata["OTHERTOOLSPARMS"]: |
231 if self.pdata["OTHERTOOLSPARMS"]: |
227 self.writeBasics("OtherToolsParams", |
232 self.writeBasics( |
228 self.pdata["OTHERTOOLSPARMS"]) |
233 "OtherToolsParams", self.pdata["OTHERTOOLSPARMS"]) |
229 self.writeEndElement() |
234 self.writeEndElement() |
230 |
235 |
231 self.writeEndElement() |
236 self.writeEndElement() |
232 self.writeEndDocument() |
237 self.writeEndDocument() |