pretty job string function for lish, fixed logging

TODO: set Logging levels
This commit is contained in:
Rafael.Timmerberg 2013-10-10 21:46:29 +02:00
commit 0bfb8ef3ae
4 changed files with 22 additions and 6 deletions

View file

@ -164,7 +164,7 @@ class LishCommander(Exit, ShellCommander, LogCommander):
try:
hgCommander = HostgroupCommander(hg)
hgCommander.cmdloop("Entering Hostmode of " + hgName + ":\n")
except KeyboardInterrupt, ke:
except KeyboardInterrupt, key:
pass
def do_python(self, text):
@ -172,8 +172,8 @@ class LishCommander(Exit, ShellCommander, LogCommander):
def do_jobs(self, text):
if text == "list":
for job in self._scheduler.get_jobs():
print job
for job in self._jobs:
print job.pretty_string()
def help_jobs(self):
print "Job helper functions"