diff --git a/trac/config.py b/trac/config.py
|
a
|
b
|
|
| 145 | 145 | while parent: |
| 146 | 146 | sections |= set(parent.parser.sections()) |
| 147 | 147 | parent = parent.parent |
| | 148 | sections.update(self.defaults().keys()) |
| 148 | 149 | return sorted(sections) |
| 149 | 150 | |
| 150 | 151 | def has_option(self, section, option): |
| … |
… |
|
| 254 | 255 | return True |
| 255 | 256 | if self.config.parent: |
| 256 | 257 | return name in self.config.parent[self.name] |
| | 258 | if Option.registry.has_key((self.name, name)): |
| | 259 | return True |
| 257 | 260 | return False |
| 258 | 261 | |
| 259 | 262 | def __iter__(self): |
| … |
… |
|
| 266 | 269 | for option in self.config.parent[self.name]: |
| 267 | 270 | if option.lower() not in options: |
| 268 | 271 | yield option |
| | 272 | for section, option in Option.registry.keys(): |
| | 273 | if section == self.name and option.lower() not in options: |
| | 274 | yield option |
| 269 | 275 | |
| 270 | 276 | def __repr__(self): |
| 271 | 277 | return '<Section [%s]>' % (self.name) |