# HG changeset patch # User Jeff Hammel # Date 1290803339 28800 # Node ID ee0f793a649a06213af05bf6a684bb7ea8901d03 # Parent e7dfad8c8f276b60c61ca9cff68847b176dd64d7 deal with configuration support for print_reqeust diff -r e7dfad8c8f27 -r ee0f793a649a bzconsole/main.py --- 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