Most of the pep8 changes finished. Be careful, things may be horribly broken.
This commit is contained in:
@ -18,21 +18,21 @@ class command():
|
||||
def shutdown(self):
|
||||
pass
|
||||
|
||||
def getDescription(self):
|
||||
def get_description(self):
|
||||
return _('get previous quick menu entry')
|
||||
|
||||
def run(self):
|
||||
menu = ''
|
||||
value = ''
|
||||
if self.env['runtime']['quickMenuManager'].prevEntry():
|
||||
menu = self.env['runtime']['quickMenuManager'].getCurrentEntry()
|
||||
if self.env['runtime']['QuickMenuManager'].prev_entry():
|
||||
menu = self.env['runtime']['QuickMenuManager'].get_current_entry()
|
||||
if menu != '':
|
||||
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
|
||||
self.env['runtime']['outputManager'].presentText(
|
||||
value = self.env['runtime']['QuickMenuManager'].get_current_value()
|
||||
self.env['runtime']['OutputManager'].present_text(
|
||||
menu + ' ' + value, interrupt=True)
|
||||
else:
|
||||
self.env['runtime']['outputManager'].presentText(
|
||||
self.env['runtime']['OutputManager'].present_text(
|
||||
_('Quick menu not available'), interrupt=True)
|
||||
|
||||
def setCallback(self, callback):
|
||||
def set_callback(self, callback):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user