Most of the pep8 changes finished. Be careful, things may be horribly broken.
This commit is contained in:
@ -19,21 +19,21 @@ class command():
|
||||
def shutdown(self):
|
||||
pass
|
||||
|
||||
def getDescription(self):
|
||||
def get_description(self):
|
||||
return _('presents the date')
|
||||
|
||||
def run(self):
|
||||
dateFormat = self.env['runtime']['settingsManager'].getSetting(
|
||||
'general', 'dateFormat')
|
||||
date_format = self.env['runtime']['SettingsManager'].get_setting(
|
||||
'general', 'date_format')
|
||||
|
||||
# get the time formatted
|
||||
dateString = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), dateFormat)
|
||||
date_string = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), date_format)
|
||||
|
||||
# present the time via speak and braile, there is no soundicon,
|
||||
# interrupt the current speech
|
||||
self.env['runtime']['outputManager'].presentText(
|
||||
dateString, soundIcon='', interrupt=True)
|
||||
self.env['runtime']['OutputManager'].present_text(
|
||||
date_string, sound_icon ='', interrupt=True)
|
||||
|
||||
def setCallback(self, callback):
|
||||
def set_callback(self, callback):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user