Hi,

In current git (d63ec5fd3eca61ea53d06a96bfb52170111fc25d) "be help
severity" produces the following:

Traceback (most recent call last):
  File "/home/marienz/bin/be", line 26, in <module>
    sys.exit(libbe.ui.command_line.main())
  File "/home/marienz/src/be/libbe/ui/command_line.py", line 332, in
main
    ret = dispatch(ui, command, args)
  File "/home/marienz/src/be/libbe/ui/command_line.py", line 264, in
dispatch
    ret = ui.run(command, options, args)
  File "/home/marienz/src/be/libbe/command/base.py", line 534, in run
    return command.run(options, args)
  File "/home/marienz/src/be/libbe/command/base.py", line 262, in run
    self.status = self._run(**params)
  File "/home/marienz/src/be/libbe/command/help.py", line 68, in _run
    print >> self.stdout, c.help().rstrip('\n')
  File "/home/marienz/src/be/libbe/command/base.py", line 313, in help
    self._long_help().rstrip('\n')])
  File "/home/marienz/src/be/libbe/command/severity.py", line 91, in
_long_help
    bd = self._get_bugdir()
AttributeError: 'Severity' object has no attribute '_get_bugdir'

After poking around a little I applied the following patch which makes
this work:

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')


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).

Thanks for keeping BE alive,

-- 
Marien.


_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to