From 130ba3a442e0024630d326d961e824e9dd5b3413 Mon Sep 17 00:00:00 2001 From: Sérgio Almeida Date: Wed, 29 Jul 2009 17:55:47 +0100 Subject: fixed ui bug --- uio.py | 22 +++++++++++++++------- umodule.py | 3 +-- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/uio.py b/uio.py index c669a11..f00b2ca 100644 --- a/uio.py +++ b/uio.py @@ -305,14 +305,8 @@ class PrintSystem: self.print_table([ \ [bold + '-v', bullet + space + 'Verbose Mode'], \ [bold + '-nc', bullet + space + 'No Colors'], \ - [bold + '-help', bullet + space + 'See this screen'], \ - [bold + '-list', bullet + space + 'List Profiles'], \ [bold + '-version', bullet + space + 'Version Information']]) - self.print_line('') - self.print_line(highlight + space + 'Usage Examples:' + reset) - self.print_table([ \ - [bold + 'uprofile', bullet + space + 'Activates Folder Profile. Fallback to user profile.'], \ - [bold + 'uprofile ', bullet + space + 'See Details on ']]) + class ProfilePrintSystem(PrintSystem): @@ -375,6 +369,20 @@ class ProfilePrintSystem(PrintSystem): self.print_line(bold + lime + 'Usage:' + reset + ' uprofile ' + profile_name \ + space + action_name + space + options) + + def print_options(self): + self.print_line(highlight + space + 'Options:' + reset) + self.print_table([ \ + [bold + '-v', bullet + space + 'Verbose Mode'], \ + [bold + '-nc', bullet + space + 'No Colors'], \ + [bold + '-help', bullet + space + 'See this screen'], \ + [bold + '-list', bullet + space + 'List Profiles'], \ + [bold + '-version', bullet + space + 'Version Information']]) + self.print_line('') + self.print_line(highlight + space + 'Usage Examples:' + reset) + self.print_table([ \ + [bold + 'uprofile', bullet + space + 'Activates Folder Profile. Fallback to user profile.'], \ + [bold + 'uprofile ', bullet + space + 'See Details on ']]) filesystem = FileSystem() printsystem = PrintSystem() diff --git a/umodule.py b/umodule.py index 7f5ff24..cb45f2d 100644 --- a/umodule.py +++ b/umodule.py @@ -186,8 +186,7 @@ class Sym(Action): family.append(parent) return family else: - for member in family: - family.pop() + del family[:] elif isinstance(link, list) and isinstance(link[0], int): if option == link[0]: -- cgit v1.2.3-65-gdbad