Exemple #1
0
 def sections(self):
     sec = {}
     sections = []
     for sett in ordered_settings():
         s = sett.section
         if s not in sec:
             sections.append(s)
             sec[s] = [sett]
         else:
             sec[s].append(sett)
     for s in sections:
         yield s, sec[s]
Exemple #2
0
 def sections(self):
     sec = {}
     sections = []
     for sett in ordered_settings():
         s = sett.section
         if s not in sec:
             sections.append(s)
             sec[s] = [sett]
         else:
             sec[s].append(sett)
     for s in sections:
         yield s, sec[s]