just playing with jobs in lish... ;)

This commit is contained in:
Johannes Findeisen 2013-10-04 18:01:22 +02:00
commit 1a6e9a89d1

View file

@ -153,6 +153,14 @@ class LishCommander(Exit, ShellCommander, LogCommander):
def do_python(self, text): def do_python(self, text):
exec text exec text
def do_jobs(self, text):
if text == "list":
for job in self._scheduler.get_jobs():
print job
def help_jobs(self):
print "Job helper functions"
def help_python(self): def help_python(self):
print ''' print '''
executes python using 'exec'. executes python using 'exec'.