Wed, 30 Oct 2013 16:06:47 +0100
Corrected some code and documentation style issues.
diff -r e654970c913e -r 6acbfbba1e9d PluginProjectPyramid.zip Binary file PluginProjectPyramid.zip has changed
diff -r e654970c913e -r 6acbfbba1e9d ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.Project.html --- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.Project.html Tue Oct 29 22:30:48 2013 +0100 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.Project.html Wed Oct 30 16:06:47 2013 +0100 @@ -684,22 +684,22 @@ <table> <tr> <td><a href="#QProcess.start">start</a></td> -<td>Starts the given program (cmd) in a new process, if none is already running, passing the command line arguments in argss.</td> +<td>Public method to start the given program (cmd) in a new process, if none is already running, passing the command line arguments in args.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr> <td><a href="#QProcess.startDetached">startDetached</a></td> -<td>Starts the given program (cmd) in a new process, if none is already running, passing the command line arguments in argss.</td> +<td>Static method to start the given program (cmd) in a new process, if none is already running, passing the command line arguments in args.</td> </tr> </table> <a NAME="QProcess.start" ID="QProcess.start"></a> <h4>QProcess.start</h4> <b>start</b>(<i>cmd, args=[], mode=QProcessPyQt.ReadWrite</i>) <p> - 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. </p><dl> <dt><i>cmd</i></dt> <dd> @@ -715,8 +715,8 @@ <h4>QProcess.startDetached (static)</h4> <b>startDetached</b>(<i>args=[], path=''</i>) <p> - 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. </p><dl> <dt><i>cmd</i></dt> <dd>
diff -r e654970c913e -r 6acbfbba1e9d ProjectPyramid/Project.py --- 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