Thu, 13 Sep 2012 18:14:53 +0200
Adaptation to the extended project plug-in interface for registering project types.
ChangeLog | file | annotate | diff | comparison | revisions | |
PluginProjectPyramid.py | file | annotate | diff | comparison | revisions |
--- a/ChangeLog Fri Aug 31 17:44:10 2012 +0200 +++ b/ChangeLog Thu Sep 13 18:14:53 2012 +0200 @@ -1,5 +1,11 @@ ChangeLog --------- +Version 0.3.0 +- bug fixes +- adaptation to the extended project plug-in interface for registering + project types +- Spanish translations + Version 0.2.0 - bug fixes
--- a/PluginProjectPyramid.py Fri Aug 31 17:44:10 2012 +0200 +++ b/PluginProjectPyramid.py Thu Sep 13 18:14:53 2012 +0200 @@ -29,7 +29,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "0.2.0" +version = "0.3.0" className = "ProjectPyramidPlugin" packageName = "ProjectPyramid" shortDescription = "Project support for Pyramid projects." @@ -181,10 +181,18 @@ self.__mainMenu = self.__object.initMenu() - self.__e5project.registerProjectType("Pyramid", self.trUtf8("Pyramid"), - self.fileTypesCallback, - lexerAssociationCallback=self.lexerAssociationCallback, - binaryTranslationsCallback=self.binaryTranslationsCallback) + try: + self.__e5project.registerProjectType("Pyramid", self.trUtf8("Pyramid"), + self.fileTypesCallback, + lexerAssociationCallback=self.lexerAssociationCallback, + binaryTranslationsCallback=self.binaryTranslationsCallback, + progLanguages=["Python2", "Python3"]) + except TypeError: + # for backward compatibility + self.__e5project.registerProjectType("Pyramid", self.trUtf8("Pyramid"), + self.fileTypesCallback, + lexerAssociationCallback=self.lexerAssociationCallback, + binaryTranslationsCallback=self.binaryTranslationsCallback) Preferences.setProjectBrowserFlagsDefault("Pyramid", SourcesBrowserFlag | \ FormsBrowserFlag | \