PluginProjectDjango.py

changeset 110
da5ee5012004
parent 108
e6b5b87decc1
child 113
9b7adb12b409
equal deleted inserted replaced
109:0f579ef4f7ad 110:da5ee5012004
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.0.9" 31 version = "5.0.10"
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."""
132 "TranslationsEditor": "", 132 "TranslationsEditor": "",
133 133
134 "UseExternalBrowser": False, 134 "UseExternalBrowser": False,
135 135
136 "CheckDeployMode": False, 136 "CheckDeployMode": False,
137
138 "RecentNumberTestData": 10,
137 } 139 }
138 if isWindowsPlatform(): 140 if isWindowsPlatform():
139 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k" 141 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k"
140 self.__defaults["ConsoleCommand"] = "cmd.exe /c" 142 self.__defaults["ConsoleCommand"] = "cmd.exe /c"
141 elif isMacPlatform(): 143 elif isMacPlatform():
343 Public method to retrieve the various settings. 345 Public method to retrieve the various settings.
344 346
345 @param key the key of the value to get 347 @param key the key of the value to get
346 @return the requested setting 348 @return the requested setting
347 """ 349 """
348 if key in ["RecentNumberApps"]: 350 if key in ["RecentNumberApps", "RecentNumberTestData"]:
349 return int(Preferences.Prefs.settings.value( 351 return int(Preferences.Prefs.settings.value(
350 self.PreferencesKey + "/" + key, self.__defaults[key])) 352 self.PreferencesKey + "/" + key, self.__defaults[key]))
351 elif key in ["UsePlainPythonPy2", "UsePlainPythonPy3", "UseIPv6", 353 elif key in ["UsePlainPythonPy2", "UsePlainPythonPy3", "UseIPv6",
352 "UseExternalBrowser", "CheckDeployMode"]: 354 "UseExternalBrowser", "CheckDeployMode"]:
353 return Preferences.toBool(Preferences.Prefs.settings.value( 355 return Preferences.toBool(Preferences.Prefs.settings.value(

eric ide

mercurial