Most of the pep8 changes finished. Be careful, things may be horribly broken.

This commit is contained in:
Storm Dragon
2025-07-03 13:22:00 -04:00
parent 7408951152
commit 21bb9c6083
344 changed files with 6374 additions and 6083 deletions

View File

@ -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