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-09-30 16:51:25 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-09-30 16:51:25 (GMT)
commit0f8ebe02f055cf0f153ccd036bab91f2a425e077 (patch)
tree3494813aeac638ed54665a8a768d0383f45dff28
parente82317d0feaa24b218bb19a7358e4618f61e6e07 (diff)
Update codelets
-rw-r--r--active_toolkit/application.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/active_toolkit/application.py b/active_toolkit/application.py
index 5b772c5..0936533 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-19$
+$Date: 2012-09-30$
"""
@@ -178,6 +178,9 @@ class Application(object):
logging.basicConfig(level=logging_level, format=logging_format)
+ def epilog(self):
+ pass
+
def start(self):
self._rundir = abspath(rundir.value or '/var/run/' + self.name)
@@ -198,6 +201,7 @@ class Application(object):
printf.exception('%s %s', _('Aborted'), self.name)
exit(1)
finally:
+ self.epilog()
if not no_hints.value:
printf.flush_hints()
@@ -260,9 +264,6 @@ class Daemon(Application):
def shutdown(self):
pass
- def epilog(self):
- pass
-
@command('start in daemon mode', name='start', keep_stdout=True)
def _cmd_start(self):
pid = self.check_for_instance()