Lines Matching refs:section
22 def getDescription(self, section, name): argument
23 return self._desc[(section, name)]
25 def setDescription(self, section, name, desc): argument
28 self._desc[(section, name)] = desc
31 def addArgument(self, section, name, desc): argument
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)
38 self.setDescription(section, name, desc)
52 for section in self.sections:
53 … nameLen = max([nameLen, max(map(lambda n: len(n.split('@')[0]), self.sections[section][1]))+1])
54 …x([descLen, max(map(lambda name: len(self.getDescription(section, name)), self.sections[section][1…
65 for section, names in items:
66 f.write(section+':\n')
68 f.write(format % (name.split('@')[0], self.getDescription(section, name)))
82 def getDescription(self, section, name): argument
85 def setDescription(self, section, name, desc): argument
95 def addArgument(self, section, name, argType, ignoreDuplicates = 0): argument
98 if section in self.sections:
99 if name in self.sections[section][1]:
102 raise RuntimeError('Duplicate configure option '+name+' in section '+section)
104 self.sections[section] = (len(self.sections), [])
106 self.sections[section][1].append(name)
126 for section, names in items:
127 if sections and not section.casefold() in sections:
130 f.write(section + ':\n')