PluginProjectDjango.py

changeset 132
576cb5a3b035
parent 128
0010054d5f56
child 135
0651215afeef
equal deleted inserted replaced
131:e17a33dfc6e9 132:576cb5a3b035
26 # Start-of-Header 26 # Start-of-Header
27 name = "Django Project Plugin" 27 name = "Django 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 = "5.1.1" 31 version = "5.2.0"
32 className = "ProjectDjangoPlugin" 32 className = "ProjectDjangoPlugin"
33 packageName = "ProjectDjango" 33 packageName = "ProjectDjango"
34 shortDescription = "Project support for Django projects." 34 shortDescription = "Project support for Django projects."
35 longDescription = \ 35 longDescription = \
36 """This plugin implements project support for Django projects.""" 36 """This plugin implements project support for Django projects."""
116 QObject.__init__(self, ui) 116 QObject.__init__(self, ui)
117 self.__ui = ui 117 self.__ui = ui
118 self.__initialize() 118 self.__initialize()
119 119
120 self.__defaults = { 120 self.__defaults = {
121 "VirtualEnvironmentNamePy2": "",
122 "VirtualEnvironmentNamePy3": "",
123
124 # these are obsolete and kept for use with eric <18.07
121 "VirtualEnvironmentPy2": "", 125 "VirtualEnvironmentPy2": "",
122 "VirtualEnvironmentPy3": "", 126 "VirtualEnvironmentPy3": "",
123 127
124 "Python2ConsoleType": "ipython", 128 "Python2ConsoleType": "ipython",
125 "Python3ConsoleType": "ipython", 129 "Python3ConsoleType": "ipython",
372 @param value the value to be set 376 @param value the value to be set
373 """ 377 """
374 Preferences.Prefs.settings.setValue( 378 Preferences.Prefs.settings.setValue(
375 self.PreferencesKey + "/" + key, value) 379 self.PreferencesKey + "/" + key, value)
376 380
377 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3"]: 381 if key in ["VirtualEnvironmentPy2", "VirtualEnvironmentPy3",
382 "VirtualEnvironmentNamePy2", "VirtualEnvironmentNamePy3"]:
378 self.__reregisterProjectType() 383 self.__reregisterProjectType()
379 elif key == "TranslationsEditor": 384 elif key == "TranslationsEditor":
380 if self.__object: 385 if self.__object:
381 self.__object.registerOpenHook() 386 self.__object.registerOpenHook()
382 387

eric ide

mercurial