Commit Graph
29 Commits
Author SHA1 Message Date
A_D efebdfdfed Ensured that emitter is always bound, even if None 2021-04-12 08:31:48 +01:00
Athanasius 4d9e8e3f30 dashboard: Convert open(pathlib) to pathlib.open() 2021-04-12 08:31:48 +01:00
Athanasius 04506899cc dashboard.py: mypy lints
Despite it being unused I restored the `logfile` argument to
`Dashboard.process()`.  It's set in a call to it.  Further investigation
if/when we do a proper code cleanup.
2021-04-12 08:31:48 +01:00
Athanasius e67e0a03fa dashboard.py: Fix flake8 lints 2021-04-12 08:31:48 +01:00
A_D 051245cf90 Renamed various config values to be backwards compatible 2021-04-01 14:45:48 +01:00
Athanasius a8aab186bf config: Update some 'callers' of config.shutting_down for it being a property 2021-04-01 14:45:48 +01:00
Athanasius 608a336bb3 dashboard: Bail early from process() if in shutdown
# Conflicts:
#	dashboard.py
2021-04-01 14:45:48 +01:00
A_D 00629b7420 use _str versions of paths for string ops 2021-04-01 14:45:48 +01:00
A_D e3def21683 Made sure to handle an empty journal dir in the config 2021-04-01 14:45:46 +01:00
A_D 278480b99f replaced ors with defaults in config usage 2021-04-01 14:45:46 +01:00
Athanasius 25852997c5 Updated all source to use new config methods
# Conflicts:
#	monitor.py
2021-04-01 14:45:46 +01:00
Athanasius 9f45960fe3 dashboard: Reinstate "from calendar import timegm"
This was inadvertently removed in 102fe80978
2021-04-01 14:45:44 +01:00
Athanasius 404f1fa641 dashboard: No need for except var if unused. 2021-04-01 14:45:44 +01:00
Athanasius abfde73362 dashboard, hotkey, protocol: Use EDMCLogging.get_main_logger()
It does the EDMC/EDMarketConnector check.
2021-04-01 14:45:44 +01:00
Athanasius c47688227b dashboard: Detailed logging Dashboard.start()
# Conflicts:
#	dashboard.py
2021-04-01 14:45:44 +01:00
Athanasius 137c66048a dashboard: Remove print_exc use (logger.exception instead)
# Conflicts:
#	dashboard.py
2021-04-01 14:45:44 +01:00
Athanasius fd19ac337a dashboard: Detailed logging Dashboard .stop() & .close()
# Conflicts:
#	dashboard.py
2021-04-01 14:45:44 +01:00
Athanasius 462cd25312 config: Make config.shutting_down() a property, and change 'callers' 2021-01-11 16:54:09 +00:00
Athanasius cb9bd30a05 dashboard: Bail early from process() if in shutdown 2021-01-11 16:41:36 +00:00
Athanasius 81974f66ec monitor/dashboard: move away from if __debug__
This includes changing one print_exc() to logger.exception()
2021-01-08 14:56:22 +00:00
Athanasius 9bfe7134a9 Need to int() a division if passing where an int is required 2019-09-26 11:40:42 +01:00
Athanasius 6b75fdb34c dashboard.py: Missed de-future'ing old_div 2019-09-26 11:40:42 +01:00
Athanasius b64d59c2e5 dashboard.py: De-future 2019-09-26 11:40:42 +01:00
Athanasius 218c068ee5 Running EDMarketConnector.py 'works'.
First pass utilising 'futurize' to do most of the work.

  There's an issue with ur'\"' in l10n.py which I'm not sure how to
properly fix.

  This now has errors when hitting the 'Update' button.
2019-09-26 11:40:38 +01:00
Jonathan Harris a442d2cd14 Extend localisation support to plugins 2018-05-12 20:50:45 +01:00
Jonathan Harris daf53de57d Avoid spurious errors in debug log when polling 2018-03-04 18:14:01 +00:00
Jonathan Harris a14ce6b89f Poll for dashboard on macOS
since can't have two watchdof observers on one directory.
2018-02-28 18:24:36 +00:00
Jonathan Harris 1a2b16a7b3 Handle transitory files 2018-02-10 16:43:08 +00:00
Jonathan Harris 75edff5fc3 Rename plugin callback to dashboard_entry 2018-01-30 00:11:49 +00:00