PluginProjectPyramid.py

changeset 114
4de6dbce4dd6
parent 112
916727bdff4d
child 117
672bd87483f3
equal deleted inserted replaced
113:10364f51ba54 114:4de6dbce4dd6
26 # Start-of-Header 26 # Start-of-Header
27 name = "Pyramid Project Plugin" 27 name = "Pyramid Project Plugin"
28 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 28 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
29 autoactivate = True 29 autoactivate = True
30 deactivateable = True 30 deactivateable = True
31 version = "2.3.5" 31 version = "2.4.0"
32 className = "ProjectPyramidPlugin" 32 className = "ProjectPyramidPlugin"
33 packageName = "ProjectPyramid" 33 packageName = "ProjectPyramid"
34 shortDescription = "Project support for Pyramid projects." 34 shortDescription = "Project support for Pyramid projects."
35 longDescription = \ 35 longDescription = \
36 """This plugin implements project support for Pyramid projects.""" 36 """This plugin implements project support for Pyramid projects."""
118 QObject.__init__(self, ui) 118 QObject.__init__(self, ui)
119 self.__ui = ui 119 self.__ui = ui
120 self.__initialize() 120 self.__initialize()
121 121
122 self.__defaults = { 122 self.__defaults = {
123 "VirtualEnvironmentNamePy2": "",
124 "VirtualEnvironmentNamePy3": "",
125
126 # these are obsolete and kept for use with eric <18.07
123 "VirtualEnvironmentPy2": "", 127 "VirtualEnvironmentPy2": "",
124 "VirtualEnvironmentPy3": "", 128 "VirtualEnvironmentPy3": "",
129
125 "Python2ConsoleType": "python", 130 "Python2ConsoleType": "python",
126 "Python3ConsoleType": "python", 131 "Python3ConsoleType": "python",
132
127 "PyramidDocUrl": "http://docs.pylonsproject.org/projects/" 133 "PyramidDocUrl": "http://docs.pylonsproject.org/projects/"
128 "pyramid/en/latest/index.html", 134 "pyramid/en/latest/index.html",
135
129 "TranslationsEditor": "", 136 "TranslationsEditor": "",
137
130 "UseExternalBrowser": False, 138 "UseExternalBrowser": False,
131 } 139 }
132 if isWindowsPlatform(): 140 if isWindowsPlatform():
133 self.__defaults["ConsoleCommand"] = "cmd.exe /c" 141 self.__defaults["ConsoleCommand"] = "cmd.exe /c"
134 elif isMacPlatform(): 142 elif isMacPlatform():
361 @param value the value to be set 369 @param value the value to be set
362 """ 370 """
363 Preferences.Prefs.settings.setValue( 371 Preferences.Prefs.settings.setValue(
364 self.PreferencesKey + "/" + key, value) 372 self.PreferencesKey + "/" + key, value)
365 373
366 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]: 374 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3",
375 "VirtualEnvironmentNamePy2", "VirtualEnvironmentNamePy3"]:
367 self.__reregisterProjectType() 376 self.__reregisterProjectType()
368 elif key == "TranslationsEditor": 377 elif key == "TranslationsEditor":
369 if self.__object: 378 if self.__object:
370 self.__object.registerOpenHook() 379 self.__object.registerOpenHook()
371 380

eric ide

mercurial