83 # do the UI type |
83 # do the UI type |
84 self.writeTextElement("ProjectType", self.pdata["PROJECTTYPE"][0]) |
84 self.writeTextElement("ProjectType", self.pdata["PROJECTTYPE"][0]) |
85 |
85 |
86 # do description |
86 # do description |
87 if self.pdata["DESCRIPTION"]: |
87 if self.pdata["DESCRIPTION"]: |
88 self.writeTextElement("Description", self.pdata["DESCRIPTION"][0]) |
88 self.writeTextElement("Description", self.pdata["DESCRIPTION"]) |
89 |
89 |
90 # do version, author and email |
90 # do version, author and email |
91 self.writeTextElement("Version", self.pdata["VERSION"][0]) |
91 self.writeTextElement("Version", self.pdata["VERSION"]) |
92 self.writeTextElement("Author", self.pdata["AUTHOR"][0]) |
92 self.writeTextElement("Author", self.pdata["AUTHOR"][0]) |
93 self.writeTextElement("Email", self.pdata["EMAIL"][0]) |
93 self.writeTextElement("Email", self.pdata["EMAIL"][0]) |
94 |
94 |
95 # do the translation pattern |
95 # do the translation pattern |
96 if self.pdata["TRANSLATIONPATTERN"]: |
96 if self.pdata["TRANSLATIONPATTERN"]: |
97 self.writeTextElement( |
97 self.writeTextElement( |
98 "TranslationPattern", |
98 "TranslationPattern", |
99 Utilities.fromNativeSeparators( |
99 Utilities.fromNativeSeparators( |
100 self.pdata["TRANSLATIONPATTERN"][0])) |
100 self.pdata["TRANSLATIONPATTERN"])) |
101 |
101 |
102 # do the binary translations path |
102 # do the binary translations path |
103 if self.pdata["TRANSLATIONSBINPATH"]: |
103 if self.pdata["TRANSLATIONSBINPATH"]: |
104 self.writeTextElement( |
104 self.writeTextElement( |
105 "TranslationsBinPath", |
105 "TranslationsBinPath", |
106 Utilities.fromNativeSeparators( |
106 Utilities.fromNativeSeparators( |
107 self.pdata["TRANSLATIONSBINPATH"][0])) |
107 self.pdata["TRANSLATIONSBINPATH"])) |
108 |
108 |
109 # do the eol setting |
109 # do the eol setting |
110 if self.pdata["EOL"] and self.pdata["EOL"][0]: |
110 if 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"]))) |
113 |
113 |
114 # do the sources |
114 # do the sources |
115 self.writeStartElement("Sources") |
115 self.writeStartElement("Sources") |
116 for name in sorted(self.pdata["SOURCES"]): |
116 for name in sorted(self.pdata["SOURCES"]): |
117 self.writeTextElement( |
117 self.writeTextElement( |
163 |
163 |
164 # do the main script |
164 # do the main script |
165 if self.pdata["MAINSCRIPT"]: |
165 if self.pdata["MAINSCRIPT"]: |
166 self.writeTextElement( |
166 self.writeTextElement( |
167 "MainScript", |
167 "MainScript", |
168 Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"][0])) |
168 Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"])) |
169 |
169 |
170 # do the vcs stuff |
170 # do the vcs stuff |
171 self.writeStartElement("Vcs") |
171 self.writeStartElement("Vcs") |
172 if self.pdata["VCS"]: |
172 if self.pdata["VCS"]: |
173 self.writeTextElement("VcsType", self.pdata["VCS"][0]) |
173 self.writeTextElement("VcsType", self.pdata["VCS"]) |
174 if self.pdata["VCSOPTIONS"]: |
174 if self.pdata["VCSOPTIONS"]: |
175 self.writeBasics("VcsOptions", self.pdata["VCSOPTIONS"][0]) |
175 self.writeBasics("VcsOptions", self.pdata["VCSOPTIONS"]) |
176 if self.pdata["VCSOTHERDATA"]: |
176 if self.pdata["VCSOTHERDATA"]: |
177 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0]) |
177 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"]) |
178 self.writeEndElement() |
178 self.writeEndElement() |
179 |
179 |
180 # do the filetype associations |
180 # do the filetype associations |
181 self.writeStartElement("FiletypeAssociations") |
181 self.writeStartElement("FiletypeAssociations") |
182 for pattern, filetype in sorted(self.pdata["FILETYPES"].items()): |
182 for pattern, filetype in sorted(self.pdata["FILETYPES"].items()): |