--- a/ProjectPyramid/Project.py Tue Oct 29 22:30:48 2013 +0100 +++ b/ProjectPyramid/Project.py Wed Oct 30 16:06:47 2013 +0100 @@ -49,8 +49,8 @@ """ def start(self, cmd, args=[], mode=QProcessPyQt.ReadWrite): """ - Starts the given program (cmd) in a new process, if none is already - running, passing the command line arguments in argss. + Public method to start the given program (cmd) in a new process, if + none is already running, passing the command line arguments in args. @param cmd start the given program cmd (string) @keyparam args list of parameters (list of strings) @@ -64,8 +64,8 @@ @staticmethod def startDetached(cmd, args=[], path=''): """ - Starts the given program (cmd) in a new process, if none is already - running, passing the command line arguments in argss. + Static method to start the given program (cmd) in a new process, if + none is already running, passing the command line arguments in args. @param cmd start the given program cmd (string) @keyparam args list of parameters (list of strings) @@ -521,7 +521,7 @@ self.trUtf8("New Form"), self.trUtf8("<p>The new form file <b>{0}</b> could" " not be created.<br/> Problem: {1}</p>") - .format(fname, e)) + .format(fname, e)) return self.__e5project.appendFile(fname) @@ -610,10 +610,10 @@ if variant.lower() in l0.lower() or \ "{0}.".format(variant[-1]) in l0 or \ (variant == "Python2" and - "python3" not in l0.lower() and - "python" in l0.lower()): - variants.append(variant) - break + "python3" not in l0.lower() and + "python" in l0.lower()): + variants.append(variant) + break return variants @@ -1382,13 +1382,15 @@ try: potFile = config.get("extract_messages", "output_file") except configparser.NoSectionError: - E5MessageBox.warning(self.__ui, + E5MessageBox.warning( + self.__ui, title, self.trUtf8('No setup.cfg found or no "extract_messages"' ' section found in setup.cfg.')) return except configparser.NoOptionError: - E5MessageBox.warning(self.__ui, + E5MessageBox.warning( + self.__ui, title, self.trUtf8('No "output_file" option found in setup.cfg.')) return