Project/Project.py

branch
Py2 comp.
changeset 3532
86ac124f322c
parent 3515
1b8381afe38f
parent 3521
7d17803aab56
child 3591
2f2a4a76dd22
equal deleted inserted replaced
3526:b00ee853bceb 3532:86ac124f322c
2961 2961
2962 @return programming language (string) 2962 @return programming language (string)
2963 """ 2963 """
2964 return self.pdata["PROGLANGUAGE"][0] 2964 return self.pdata["PROGLANGUAGE"][0]
2965 2965
2966 def isPythonProject(self):
2967 """
2968 Public method to check, if this project is a Python2 or Python3
2969 project.
2970
2971 @return flag indicating a Python project (boolean)
2972 """
2973 return self.pdata["PROGLANGUAGE"][0] in ["Python", "Python2",
2974 "Python3"]
2975
2966 def isPy3Project(self): 2976 def isPy3Project(self):
2967 """ 2977 """
2968 Public method to check, if this project is a Python3 project. 2978 Public method to check, if this project is a Python3 project.
2969 2979
2970 @return flag indicating a Python3 project (boolean) 2980 @return flag indicating a Python3 project (boolean)
2984 Public method to check, if this project is a Ruby project. 2994 Public method to check, if this project is a Ruby project.
2985 2995
2986 @return flag indicating a Ruby project (boolean) 2996 @return flag indicating a Ruby project (boolean)
2987 """ 2997 """
2988 return self.pdata["PROGLANGUAGE"][0] == "Ruby" 2998 return self.pdata["PROGLANGUAGE"][0] == "Ruby"
2999
3000 def isJavaScriptProject(self):
3001 """
3002 Public method to check, if this project is a JavaScript project.
3003
3004 @return flag indicating a JavaScript project (boolean)
3005 """
3006 return self.pdata["PROGLANGUAGE"][0] == "JavaScript"
2989 3007
2990 def getProjectSpellLanguage(self): 3008 def getProjectSpellLanguage(self):
2991 """ 3009 """
2992 Public method to get the project's programming language. 3010 Public method to get the project's programming language.
2993 3011

eric ide

mercurial