Mercurial > hg > bzconsole
changeset 12:ee0f793a649a
deal with configuration support for print_reqeust
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 26 Nov 2010 12:28:59 -0800 |
parents | e7dfad8c8f27 |
children | dd72e20b9a1f |
files | bzconsole/main.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bzconsole/main.py Fri Nov 26 12:18:35 2010 -0800 +++ b/bzconsole/main.py Fri Nov 26 12:28:59 2010 -0800 @@ -99,10 +99,11 @@ except: pass - if not hasattr(self, '_configuration'): + if not getattr(self, '_configuration', None): self._configuration = self._request('/configuration') - f = file(config_cache, 'w') - print >> f, json.dumps(self._configuration) + if not self.print_request: + f = file(config_cache, 'w') + print >> f, json.dumps(self._configuration) self.refresh = False return self._configuration