Tue, 06 Nov 2012 17:13:58 +0100
Fixed a bug related to uninstalling the plug-in via the external plug-in uninstaller.
--- a/ChangeLog Thu Sep 13 18:25:40 2012 +0200 +++ b/ChangeLog Tue Nov 06 17:13:58 2012 +0100 @@ -1,5 +1,8 @@ ChangeLog --------- +Version 0.4.0 +- bug fix related to uninstalling the plug-in via the external plug-in uninstaller + Version 0.3.0 - bug fixes - adaptation to the extended project plug-in interface for registering
--- a/PluginProjectPyramid.py Thu Sep 13 18:25:40 2012 +0200 +++ b/PluginProjectPyramid.py Tue Nov 06 17:13:58 2012 +0100 @@ -29,7 +29,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "0.3.0" +version = "0.4.0" className = "ProjectPyramidPlugin" packageName = "ProjectPyramid" shortDescription = "Project support for Pyramid projects." @@ -92,14 +92,16 @@ """ Module function to prepare for an uninstallation. """ - pyramid = ProjectPyramidPlugin(None) - pyramid.prepareUninstall() + Preferences.removeProjectBrowserFlags(ProjectPyramidPlugin.PreferencesKey) + Preferences.Prefs.settings.remove(ProjectPyramidPlugin.PreferencesKey) class ProjectPyramidPlugin(QObject): """ Class implementing the Pyramid project plugin. """ + PreferencesKey = "Pyramid" + lexerAssociations = { "*.mako": "Pygments|HTML+Mako", "*.pt": "Pygments|HTML+Genshi", @@ -336,7 +338,7 @@ @param prefClass preferences class used as the storage area @return the requested setting """ - return Preferences.Prefs.settings.value("Pyramid/" + key, + return Preferences.Prefs.settings.value(self.PreferencesKey + "/" + key, self.__defaults[key]) def setPreferences(self, key, value): @@ -348,10 +350,3 @@ @param prefClass preferences class used as the storage area """ Preferences.Prefs.settings.setValue("Pyramid/" + key, value) - - def prepareUninstall(self): - """ - Public method to prepare for an uninstallation. - """ - Preferences.removeProjectBrowserFlags("Pyramid") - Preferences.Prefs.settings.remove("Pyramid")
--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.PluginProjectPyramid.html Thu Sep 13 18:25:40 2012 +0200 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.PluginProjectPyramid.html Tue Nov 06 17:13:58 2012 +0100 @@ -61,7 +61,7 @@ QObject <h3>Class Attributes</h3> <table> -<tr><td>lexerAssociations</td></tr> +<tr><td>PreferencesKey</td></tr><tr><td>lexerAssociations</td></tr> </table> <h3>Class Methods</h3> <table> @@ -106,9 +106,6 @@ <td><a href="#ProjectPyramidPlugin.lexerAssociationCallback">lexerAssociationCallback</a></td> <td>Public method to get the lexer association of the Pyramid project type for a file.</td> </tr><tr> -<td><a href="#ProjectPyramidPlugin.prepareUninstall">prepareUninstall</a></td> -<td>Public method to prepare for an uninstallation.</td> -</tr><tr> <td><a href="#ProjectPyramidPlugin.setPreferences">setPreferences</a></td> <td>Public method to store the various settings.</td> </tr> @@ -232,12 +229,7 @@ <dd> name of the lexer (string) (Pygments lexers are prefixed with 'Pygments|') </dd> -</dl><a NAME="ProjectPyramidPlugin.prepareUninstall" ID="ProjectPyramidPlugin.prepareUninstall"></a> -<h4>ProjectPyramidPlugin.prepareUninstall</h4> -<b>prepareUninstall</b>(<i></i>) -<p> - Public method to prepare for an uninstallation. -</p><a NAME="ProjectPyramidPlugin.setPreferences" ID="ProjectPyramidPlugin.setPreferences"></a> +</dl><a NAME="ProjectPyramidPlugin.setPreferences" ID="ProjectPyramidPlugin.setPreferences"></a> <h4>ProjectPyramidPlugin.setPreferences</h4> <b>setPreferences</b>(<i>key, value</i>) <p>
--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.ConfigurationPage.PyramidPage.html Thu Sep 13 18:25:40 2012 +0200 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.ConfigurationPage.PyramidPage.html Tue Nov 06 17:13:58 2012 +0100 @@ -89,13 +89,13 @@ <h4>PyramidPage.on_virtualEnvPy2Button_clicked</h4> <b>on_virtualEnvPy2Button_clicked</b>(<i></i>) <p> - Private slot to select the virtual environment for Python 2 via a + Private slot to select the virtual environment for Python 2 via a directory selection dialog. </p><a NAME="PyramidPage.on_virtualEnvPy3Button_clicked" ID="PyramidPage.on_virtualEnvPy3Button_clicked"></a> <h4>PyramidPage.on_virtualEnvPy3Button_clicked</h4> <b>on_virtualEnvPy3Button_clicked</b>(<i></i>) <p> - Private slot to select the virtual environment for Python 3 via a + Private slot to select the virtual environment for Python 3 via a directory selection dialog. </p><a NAME="PyramidPage.save" ID="PyramidPage.save"></a> <h4>PyramidPage.save</h4>
--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.FormSelectionDialog.html Thu Sep 13 18:25:40 2012 +0200 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.FormSelectionDialog.html Tue Nov 06 17:13:58 2012 +0100 @@ -74,7 +74,7 @@ </table> <a NAME="FormSelectionDialog.__init__" ID="FormSelectionDialog.__init__"></a> <h4>FormSelectionDialog (Constructor)</h4> -<b>FormSelectionDialog</b>(<i>parent = None</i>) +<b>FormSelectionDialog</b>(<i>parent=None</i>) <p> Constructor </p><dl>
--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.Project.html Thu Sep 13 18:25:40 2012 +0200 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.Project.html Tue Nov 06 17:13:58 2012 +0100 @@ -188,7 +188,7 @@ </table> <a NAME="Project.__init__" ID="Project.__init__"></a> <h4>Project (Constructor)</h4> -<b>Project</b>(<i>plugin, parent = None</i>) +<b>Project</b>(<i>plugin, parent=None</i>) <p> Constructor </p><dl> @@ -213,7 +213,7 @@ <h4>Project.__findProjects</h4> <b>__findProjects</b>(<i></i>) <p> - Private method to determine the relative path of all Pyramid + Private method to determine the relative path of all Pyramid projects (= top level dirs). </p><dl> <dt>Returns:</dt> @@ -352,7 +352,7 @@ Private slot to start a Python console for a Pyramid project. </p><a NAME="Project.__runServer" ID="Project.__runServer"></a> <h4>Project.__runServer</h4> -<b>__runServer</b>(<i>logging = False</i>) +<b>__runServer</b>(<i>logging=False</i>) <p> Private slot to start the Pyramid Web server. </p><dl>
--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.PyramidDialog.html Thu Sep 13 18:25:40 2012 +0200 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.PyramidDialog.html Tue Nov 06 17:13:58 2012 +0100 @@ -111,7 +111,7 @@ </table> <a NAME="PyramidDialog.__init__" ID="PyramidDialog.__init__"></a> <h4>PyramidDialog (Constructor)</h4> -<b>PyramidDialog</b>(<i>text, fixed = False, linewrap = True, msgSuccess = None, msgError = None, parent = None</i>) +<b>PyramidDialog</b>(<i>text, fixed=False, linewrap=True, msgSuccess=None, msgError=None, parent=None</i>) <p> Constructor </p><dl> @@ -233,7 +233,7 @@ Private slot to send the input to the subversion process. </p><a NAME="PyramidDialog.startBatchProcesses" ID="PyramidDialog.startBatchProcesses"></a> <h4>PyramidDialog.startBatchProcesses</h4> -<b>startBatchProcesses</b>(<i>argsLists, workingDir = None</i>) +<b>startBatchProcesses</b>(<i>argsLists, workingDir=None</i>) <p> Public slot used to start a batch of processes. </p><dl>