renamed clish to urlish since we are not using curses but urwid as base

This commit is contained in:
Johannes Findeisen 2013-12-01 21:12:09 +01:00
commit f0e5615bd7
2 changed files with 8 additions and 8 deletions

View file

@ -171,9 +171,9 @@ def main():
if "frontend" in core and core["frontend"]: if "frontend" in core and core["frontend"]:
frontend = core["frontend"] frontend = core["frontend"]
if frontend == "clish": if frontend == "urlish":
from linspector.frontends.clish import ClishFrontend from linspector.frontends.urlish import UrlishFrontend
ClishFrontend(interface) UrlishFrontend(interface)
else: else:
from linspector.frontends.lish import LishFrontend from linspector.frontends.lish import LishFrontend
LishFrontend(interface) LishFrontend(interface)

View file

@ -1,5 +1,5 @@
""" """
clish is a urwid based Linspector Interactive Shell. urlish is the urwid based Linspector Interactive Shell.
Uses: http://excess.org/urwid/ Uses: http://excess.org/urwid/
@ -27,7 +27,7 @@ from logging import getLogger
from linspector.frontends.frontend import Frontend from linspector.frontends.frontend import Frontend
__version__ = "0.1" __version__ = "0.1.1"
logger = getLogger(__name__) logger = getLogger(__name__)
@ -96,7 +96,7 @@ class CommandPrompt(urwid.Edit):
elif command[0] in ('version', 'v'): elif command[0] in ('version', 'v'):
self.clear() self.clear()
status_bar.set_text(" Linspector " + str(interface.get_version())) status_bar.set_text(" Linspector " + str(interface.get_version()) + ", urlish " + __version__)
main_frame.set_focus('body') main_frame.set_focus('body')
else: else:
@ -150,9 +150,9 @@ def update(main_loop, user_data):
main_loop.set_alarm_in(1, update) main_loop.set_alarm_in(1, update)
class ClishFrontend(Frontend): class UrlishFrontend(Frontend):
def __init__(self, linspector_interface): def __init__(self, linspector_interface):
super(ClishFrontend, self) super(UrlishFrontend, self)
global job_list_box global job_list_box
global command_prompt global command_prompt