From: Marien Zwart Date: Tue, 10 Aug 2010 18:04:41 +0000 (-0400) Subject: Fix "no attribute '_get_bugdir'" bug in `be help severity`. X-Git-Tag: 1.0.0~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=55aa926e497824e54c7521c2f0c45ce393ea26b8;p=be.git Fix "no attribute '_get_bugdir'" bug in `be help severity`. Bug and patch submitted by Marien Zwart. I can't think of any side effect issues this might raise, so I'm committing it ;). Excerpts from Marien's email below. From: Marien Zwart <...> Date: Tue, 10 Aug 2010 17:45:06 +0200 Subject: [Be-devel] "be help severity" fails (traceback) ... In current git (d63ec5fd3eca61ea53d06a96bfb52170111fc25d) "be help severity" produces the following: Traceback (most recent call last): ... AttributeError: 'Severity' object has no attribute '_get_bugdir' ... but I am not sure if this has any unintended side effects, so I'd prefer not to submit this as a merge request (for someone more familiar with the code to fix this instead). ... --- diff --git a/libbe/command/help.py b/libbe/command/help.py index b2b4cbd..01824fa 100644 --- a/libbe/command/help.py +++ b/libbe/command/help.py @@ -64,6 +64,7 @@ class Help (libbe.command.Command): module = libbe.command.get_command(params['topic']) Class = libbe.command.get_command_class(module,params['topic']) c = Class(ui=self.ui) + self.ui.setup_command(c) print >> self.stdout, c.help().rstrip('\n') elif params['topic'] in TOPICS: print >> self.stdout, TOPICS[params['topic']].rstrip('\n')