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