PluginProjectPyramid.py

changeset 114
4de6dbce4dd6
parent 112
916727bdff4d
child 117
672bd87483f3
--- a/PluginProjectPyramid.py	Sat Mar 31 13:41:00 2018 +0200
+++ b/PluginProjectPyramid.py	Sat Jun 23 17:45:53 2018 +0200
@@ -28,7 +28,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.3.5"
+version = "2.4.0"
 className = "ProjectPyramidPlugin"
 packageName = "ProjectPyramid"
 shortDescription = "Project support for Pyramid projects."
@@ -120,13 +120,21 @@
         self.__initialize()
         
         self.__defaults = {
+            "VirtualEnvironmentNamePy2": "",
+            "VirtualEnvironmentNamePy3": "",
+            
+            # these are obsolete and kept for use with eric <18.07
             "VirtualEnvironmentPy2": "",
             "VirtualEnvironmentPy3": "",
+            
             "Python2ConsoleType": "python",
             "Python3ConsoleType": "python",
+            
             "PyramidDocUrl": "http://docs.pylonsproject.org/projects/"
                              "pyramid/en/latest/index.html",
+            
             "TranslationsEditor": "",
+            
             "UseExternalBrowser": False,
         }
         if isWindowsPlatform():
@@ -363,7 +371,8 @@
         Preferences.Prefs.settings.setValue(
             self.PreferencesKey + "/" + key, value)
         
-        if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]:
+        if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3",
+                   "VirtualEnvironmentNamePy2", "VirtualEnvironmentNamePy3"]:
             self.__reregisterProjectType()
         elif key == "TranslationsEditor":
             if self.__object:

eric ide

mercurial