PluginProjectDjango.py

changeset 20
09e9084796de
parent 12
430932e3094c
child 26
2dd206cd1aa2
equal deleted inserted replaced
19:0b6a6e49cc06 20:09e9084796de
24 # Start-of-Header 24 # Start-of-Header
25 name = "Django Project Plugin" 25 name = "Django 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 = "3.0.0" 29 version = "3.1.0"
30 className = "ProjectDjangoPlugin" 30 className = "ProjectDjangoPlugin"
31 packageName = "ProjectDjango" 31 packageName = "ProjectDjango"
32 shortDescription = "Project support for Django projects." 32 shortDescription = "Project support for Django projects."
33 longDescription = """This plugin implements project support for Django projects.""" 33 longDescription = """This plugin implements project support for Django projects."""
34 needsRestart = False 34 needsRestart = False
123 123
124 "ServerAddress": "", 124 "ServerAddress": "",
125 125
126 "RecentNumberApps": 10, 126 "RecentNumberApps": 10,
127 "UseIPv6": False, 127 "UseIPv6": False,
128
129 "TranslationsEditor": "",
128 } 130 }
129 if isWindowsPlatform(): 131 if isWindowsPlatform():
130 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k" 132 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k"
131 self.__defaults["ConsoleCommand"] = "cmd.exe /c" 133 self.__defaults["ConsoleCommand"] = "cmd.exe /c"
132 elif isMacPlatform(): 134 elif isMacPlatform():
372 """ 374 """
373 Preferences.Prefs.settings.setValue(self.PreferencesKey + "/" + key, value) 375 Preferences.Prefs.settings.setValue(self.PreferencesKey + "/" + key, value)
374 376
375 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]: 377 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]:
376 self.__reregisterProjectType() 378 self.__reregisterProjectType()
379 elif key == "TranslationsEditor":
380 if self.__object:
381 self.__object.registerOpenHook()
377 382
378 def __reregisterProjectType(self): 383 def __reregisterProjectType(self):
379 """ 384 """
380 Private method to re-register the project type. 385 Private method to re-register the project type.
381 """ 386 """

eric ide

mercurial