From c853ed01a8f43b96f7fa45f37b2260620a7d7759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Tue, 16 Aug 2005 17:42:03 +0000 Subject: [PATCH] * fix: help: get_command is now a class method * birseyler yapmadik degil --- TODO | 7 +++---- pisi/cli/commands.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index bf31c92e..240bf6ed 100644 --- a/TODO +++ b/TODO @@ -87,13 +87,12 @@ Legend: - internet: http/ftp - local repository - cdrom dvd - - UI + / UI - ask alternatives to choose from (eray) - pyqt UI class to interface - PISIMAT - - installation - - remove - - upgrade + / pykde GUI (cartman) + + metaclass coolness for CLI command framework (eray) - partial caching and automatic resume for file download (meren) - use a separate "partial/" subdir like urpmi / exception handling (baris) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 04bd9d47..9712665f 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -136,7 +136,7 @@ class Command(object): # pass def get_name(self): - return self.__class__.longname + return self.__class__.name def format_name(self): (name, shortname) = self.get_name() @@ -201,7 +201,7 @@ If run without parameters, it prints the general help.""" self.init() for arg in self.args: - obj = get_command(arg, True) + obj = Command.get_command(arg, True) obj.help() print