comparison profilemanager/manager.py @ 31:216a74146d16

sections, plural
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 16:56:48 -0700
parents d9886a7e8df7
children a6222b71aab6
comparison
equal deleted inserted replaced
30:d9886a7e8df7 31:216a74146d16
189 returns the name of the section that a profile is in or None 189 returns the name of the section that a profile is in or None
190 if not found 190 if not found
191 """ 191 """
192 if parser is None: 192 if parser is None:
193 parser = self.parser() 193 parser = self.parser()
194 for section in parser.section(): 194 for section in parser.sections():
195 if not parser.has_option(section, 'name'): 195 if not parser.has_option(section, 'name'):
196 continue # not a profile 196 continue # not a profile
197 if parser.get(section, 'name') == profile: 197 if parser.get(section, 'name') == profile:
198 return section 198 return section
199 199