PluginProjectDjango.py

changeset 100
6de07bdc8f13
parent 98
1db4d12fda93
child 102
7e2351e4d729
equal deleted inserted replaced
99:60cd02cc8945 100:6de07bdc8f13
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.4" 31 version = "5.0.5"
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."""
77 """ 77 """
78 Module function returning data as required by the configuration dialog. 78 Module function returning data as required by the configuration dialog.
79 79
80 @return dictionary containing the relevant data 80 @return dictionary containing the relevant data
81 """ 81 """
82 if e5App().getObject("UserInterface").versionIsNewer('5.0.99', '20120101'): 82 return {
83 return { 83 "djangoPage": [
84 "djangoPage": [ 84 QCoreApplication.translate("ProjectDjangoPlugin", "Django"),
85 QCoreApplication.translate("ProjectDjangoPlugin", "Django"), 85 os.path.join("ProjectDjango", "icons", "django.png"),
86 os.path.join("ProjectDjango", "icons", "django.png"), 86 createDjangoPage, None, None],
87 createDjangoPage, None, None], 87 }
88 }
89 else:
90 return {}
91 88
92 89
93 def prepareUninstall(): 90 def prepareUninstall():
94 """ 91 """
95 Module function to prepare for an uninstallation. 92 Module function to prepare for an uninstallation.

eric ide

mercurial