Lines Matching refs:sections
12 self.sections = {}
33 if not section in self.sections:
34 self.sections[section] = (len(self.sections), [])
35 if name in self.sections[section][1]:
36 name += '@'+str(len([n for n in self.sections[section][1] if name == n.split('@')[0]])+1)
37 self.sections[section][1].append(name)
52 for section in self.sections:
53 … nameLen = max([nameLen, max(map(lambda n: len(n.split('@')[0]), self.sections[section][1]))+1])
54 …cLen, max(map(lambda name: len(self.getDescription(section, name)), self.sections[section][1]))+1])
64 items = sorted(self.sections.items(), key=lambda a: a[1][0])
98 if section in self.sections:
99 if name in self.sections[section][1]:
104 self.sections[section] = (len(self.sections), [])
106 self.sections[section][1].append(name)
117 def output(self, f = None, sections = None): argument
127 if sections and not section.casefold() in sections:
143 if sections:
144 sections = {s.casefold() for s in sections}
148 for item in self.sections.items():