Lines Matching refs:section

50     #TODO: put section delimiters as separating element of the list
52 #TODO: add a comment all but provided options as a section option
149 def getSectionLine(self, section):
151 return section
152 return self.sectnamdel[0]+section+self.sectnamdel[1]+self.deol
167 if o['type'] == "section":
210 if exclude_sections and (o['type'] == "section" or o['type'] == "subsection"):
223 if o['type'] == 'section':
258 if o['type'] == "section" or o['type'] == "subsection":
308 if no['type'] == "section" or no['type'] == "subsection":
355 section = None
364 # It's a section start.
367 if section is not None:
368 opts.append({'name':section, 'type':'section', 'value':sectopts})
372 section = value
397 #Add last section if any
399 opts.append({'name':section, 'type':'section', 'value':sectopts})
407 # section is a section name like 'global'
442 # section is a section name like 'global'
522 def get(self, section, name):
523 index, item = self.get_option_index(section, name)
527 def set(self, section, name, value):
528 modkw = { 'type' : 'section',
529 'name' : section,
542 addkw = { 'type' : 'section',
549 self.delete_option('section', name)
552 return [ o for o in self.opts if o['type'] == 'section' ]
554 def has_section(self, section):
555 return len([ o for o in self.opts if o['type'] == 'section' if o['name'] == section ]) > 0
557 def options(self, section):
559 if opt['type'] == 'section' and opt['name'] == section:
571 def has_option(self, section, name):
572 index, item = self.get_option_index(section, name)
588 pindex, pdata = self.findOpts(self.opts, 'section', parent_name)