Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-10-01 05:09:51 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-10-01 05:09:51 (GMT)
commit93200cb50f261fe0a46bec0f83d395063dacff1d (patch)
treee62d8c808c5f66351d99df095cc4d7c5a4f76672
parent622b12658543c2885564033089315184a51041b6 (diff)
Update codelets
-rw-r--r--active_toolkit/application.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/active_toolkit/application.py b/active_toolkit/application.py
index 0936533..36f755a 100644
--- a/active_toolkit/application.py
+++ b/active_toolkit/application.py
@@ -17,7 +17,7 @@
$Repo: git://git.sugarlabs.org/alsroot/codelets.git$
$File: src/application.py$
-$Date: 2012-09-30$
+$Date: 2012-10-01$
"""
@@ -85,11 +85,11 @@ class Application(object):
self.name = name
self._commands = {}
- for attr in dir(self):
- attr = getattr(self, attr)
+ for name in dir(self.__class__):
+ attr = getattr(self.__class__, name)
if hasattr(attr, '_is_command') and \
(attr.name != 'config' or 'config_files' in parse_args):
- self._commands[attr.name or attr.__name__] = attr
+ self._commands[attr.name or name] = getattr(self, name)
parser = OptionParser(usage='%prog [OPTIONS]', description=description,
add_help_option=False)