]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
Fix importing UI methods
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Oct 2015 01:19:40 +0000 (03:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Oct 2015 01:19:40 +0000 (03:19 +0200)
The handle wasn't used and therefore the UI method could
not be found by its proper name.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/westferry/ui/base.py

index 699d07daf09b03941000c24fd0eb91c8a98a0865..d888c1a4f39f63c7aceeeaeb6db281cfcd34def3 100644 (file)
@@ -36,7 +36,7 @@ class UIMethodsRegistration(type):
                if ui_method.handle is None:
                        raise RuntimeError
 
-               _ui_methods[name] = ui_method()
+               _ui_methods[ui_method.handle] = ui_method()
 
        @staticmethod
        def get_ui_methods():