eric6/Templates/TemplateViewer.py

changeset 8221
0572a215bd2f
parent 8220
006ee31b4835
child 8227
349308e84eeb
equal deleted inserted replaced
8220:006ee31b4835 8221:0572a215bd2f
1057 groups = [self.groups[groupName]] 1057 groups = [self.groups[groupName]]
1058 else: 1058 else:
1059 groups = [] 1059 groups = []
1060 else: 1060 else:
1061 groups = list(self.groups.values()) 1061 groups = list(self.groups.values())
1062 for group in groups: 1062
1063 if group.hasEntry(entryName): 1063 return any(group.hasEntry(entryName) for group in groups)
1064 return True
1065
1066 return False
1067 1064
1068 def getTemplateNames(self, start, groupName=None): 1065 def getTemplateNames(self, start, groupName=None):
1069 """ 1066 """
1070 Public method to get the names of templates starting with the 1067 Public method to get the names of templates starting with the
1071 given string. 1068 given string.

eric ide

mercurial