PluginProjectPyramid.py

changeset 48
c313efdb01de
parent 44
989c961c33ab
child 54
71c83a661c83
child 56
c7adc68350dd
equal deleted inserted replaced
47:5c24b24944d0 48:c313efdb01de
24 # Start-of-Header 24 # Start-of-Header
25 name = "Pyramid Project Plugin" 25 name = "Pyramid Project Plugin"
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 26 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
27 autoactivate = True 27 autoactivate = True
28 deactivateable = True 28 deactivateable = True
29 version = "1.2.0" 29 version = "1.3.0"
30 className = "ProjectPyramidPlugin" 30 className = "ProjectPyramidPlugin"
31 packageName = "ProjectPyramid" 31 packageName = "ProjectPyramid"
32 shortDescription = "Project support for Pyramid projects." 32 shortDescription = "Project support for Pyramid projects."
33 longDescription = """This plugin implements project support for Pyramid projects.""" 33 longDescription = """This plugin implements project support for Pyramid projects."""
34 needsRestart = False 34 needsRestart = False
121 "VirtualEnvironmentPy2": "", 121 "VirtualEnvironmentPy2": "",
122 "VirtualEnvironmentPy3": "", 122 "VirtualEnvironmentPy3": "",
123 "Python2ConsoleType": "python", 123 "Python2ConsoleType": "python",
124 "Python3ConsoleType": "python", 124 "Python3ConsoleType": "python",
125 "PyramidDocUrl": "http://docs.pylonsproject.org/en/latest/docs/pyramid.html", 125 "PyramidDocUrl": "http://docs.pylonsproject.org/en/latest/docs/pyramid.html",
126 "TranslationsEditor": "",
126 } 127 }
127 if isWindowsPlatform(): 128 if isWindowsPlatform():
128 self.__defaults["ConsoleCommand"] = "cmd.exe /c" 129 self.__defaults["ConsoleCommand"] = "cmd.exe /c"
129 elif isMacPlatform(): 130 elif isMacPlatform():
130 self.__defaults["ConsoleCommand"] = "xterm -e" 131 self.__defaults["ConsoleCommand"] = "xterm -e"
356 """ 357 """
357 Preferences.Prefs.settings.setValue(self.PreferencesKey + "/" + key, value) 358 Preferences.Prefs.settings.setValue(self.PreferencesKey + "/" + key, value)
358 359
359 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]: 360 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]:
360 self.__reregisterProjectType() 361 self.__reregisterProjectType()
362 elif key == "TranslationsEditor":
363 if self.__object:
364 self.__object.registerOpenHook()
361 365
362 def __reregisterProjectType(self): 366 def __reregisterProjectType(self):
363 """ 367 """
364 Private method to re-register the project type. 368 Private method to re-register the project type.
365 """ 369 """

eric ide

mercurial