E5XML/ProjectWriter.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 E5XML/ProjectWriter.py
--- a/E5XML/ProjectWriter.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/E5XML/ProjectWriter.py	Fri Oct 18 23:00:41 2013 +0200
@@ -46,9 +46,11 @@
             projectFileFormatVersion))
         
         # add some generation comments
-        self.writeComment(" eric5 project file for project {0} ".format(self.name))
+        self.writeComment(
+            " eric5 project file for project {0} ".format(self.name))
         if Preferences.getProject("XMLTimestamp"):
-            self.writeComment(" Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
+            self.writeComment(
+                " Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
             self.writeComment(" Copyright (C) {0} {1}, {2} ".format(
                     time.strftime('%Y'),
                     self.pdata["AUTHOR"][0],
@@ -90,13 +92,17 @@
             
         # do the translation pattern
         if self.pdata["TRANSLATIONPATTERN"]:
-            self.writeTextElement("TranslationPattern",
-                Utilities.fromNativeSeparators(self.pdata["TRANSLATIONPATTERN"][0]))
+            self.writeTextElement(
+                "TranslationPattern",
+                Utilities.fromNativeSeparators(
+                    self.pdata["TRANSLATIONPATTERN"][0]))
         
         # do the binary translations path
         if self.pdata["TRANSLATIONSBINPATH"]:
-            self.writeTextElement("TranslationsBinPath",
-                Utilities.fromNativeSeparators(self.pdata["TRANSLATIONSBINPATH"][0]))
+            self.writeTextElement(
+                "TranslationsBinPath",
+                Utilities.fromNativeSeparators(
+                    self.pdata["TRANSLATIONSBINPATH"][0]))
         
         # do the eol setting
         if self.pdata["EOL"] and self.pdata["EOL"][0]:
@@ -106,7 +112,8 @@
         # do the sources
         self.writeStartElement("Sources")
         for name in self.pdata["SOURCES"]:
-            self.writeTextElement("Source", Utilities.fromNativeSeparators(name))
+            self.writeTextElement(
+                "Source", Utilities.fromNativeSeparators(name))
         self.writeEndElement()
         
         # do the forms
@@ -118,7 +125,8 @@
         # do the translations
         self.writeStartElement("Translations")
         for name in self.pdata["TRANSLATIONS"]:
-            self.writeTextElement("Translation", Utilities.fromNativeSeparators(name))
+            self.writeTextElement(
+                "Translation", Utilities.fromNativeSeparators(name))
         self.writeEndElement()
         
         # do the translation exceptions
@@ -132,19 +140,22 @@
         # do the resources
         self.writeStartElement("Resources")
         for name in self.pdata["RESOURCES"]:
-            self.writeTextElement("Resource", Utilities.fromNativeSeparators(name))
+            self.writeTextElement(
+                "Resource", Utilities.fromNativeSeparators(name))
         self.writeEndElement()
         
         # do the interfaces (IDL)
         self.writeStartElement("Interfaces")
         for name in self.pdata["INTERFACES"]:
-            self.writeTextElement("Interface", Utilities.fromNativeSeparators(name))
+            self.writeTextElement(
+                "Interface", Utilities.fromNativeSeparators(name))
         self.writeEndElement()
         
         # do the others
         self.writeStartElement("Others")
         for name in self.pdata["OTHERS"]:
-            self.writeTextElement("Other", Utilities.fromNativeSeparators(name))
+            self.writeTextElement(
+                "Other", Utilities.fromNativeSeparators(name))
         self.writeEndElement()
         
         # do the main script

eric ide

mercurial