Mercurial > hg > configuration
comparison configuration/configuration.py @ 112:cbd0f0aea3e5
this TODO is done
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 25 Jun 2012 15:45:27 -0700 |
parents | b9fdae6a536a |
children | f7bc409add34 |
comparison
equal
deleted
inserted
replaced
111:16e3b23c80a6 | 112:cbd0f0aea3e5 |
---|---|
291 | 291 |
292 ### methods for iteration | 292 ### methods for iteration |
293 ### TODO: make the class a real iterator | 293 ### TODO: make the class a real iterator |
294 | 294 |
295 def items(self): | 295 def items(self): |
296 # TODO: allow options to be a list of 2-tuples | 296 # allow options to be a list of 2-tuples |
297 if isinstance(self.options, dict): | 297 if isinstance(self.options, dict): |
298 return self.options.items() | 298 return self.options.items() |
299 return self.options | 299 return self.options |
300 | 300 |
301 ### methods for validating configuration | 301 ### methods for validating configuration |