Athanasius
471714f149
Bump version for develop
to 4.3.0-beta1
...
Work against stable/main is going to be using 4.2.0-beta1 shortly.
2021-04-01 14:45:49 +01:00
Athanasius
5093fb58ee
Add --force-localserver-for-auth
CL arg to EDMarketConnector
2021-04-01 14:45:49 +01:00
A_D
3ac956dcec
Removed uneeded str() calls
2021-04-01 14:45:48 +01:00
A_D
051245cf90
Renamed various config values to be backwards compatible
2021-04-01 14:45:48 +01:00
Athanasius
b7094c59f3
config: __in_shutdown needs to be abstract member, not self. ?
2021-04-01 14:45:48 +01:00
Athanasius
28a230b584
config: Change self.in_shutdown to be mangled.
...
I specifically made set_shutdown() *not* take an argument and only ever
set this true so no-one else can monkey with it, so might as well mangle
it too.
2021-04-01 14:45:48 +01:00
Athanasius
50f9410c02
config: Add class member and methods for signalling/checking shutdown status
2021-04-01 14:45:48 +01:00
A_D
41f7391e42
Added _str properties for config Path variables
2021-04-01 14:45:48 +01:00
A_D
1b7ad1f7e9
un-optionaled config.default_journal_dir
2021-04-01 14:45:46 +01:00
A_D
d95db448e8
Fixed getint not passing default arg
2021-04-01 14:45:46 +01:00
A_D
a6f3d4a382
Added optional exception handler
2021-04-01 14:45:46 +01:00
A_D
fad193eff1
Added clarifying comment
2021-04-01 14:45:46 +01:00
A_D
e50c1ec936
Defaults on get_ functions now require kwargs
2021-04-01 14:45:46 +01:00
A_D
a9c705c0cf
Removed Optionals from method definitions
...
It makes typing far easier
2021-04-01 14:45:46 +01:00
A_D
e84373822c
Finished docstrings
2021-04-01 14:45:46 +01:00
A_D
a85a3d356a
Added warning on windows for large ints
2021-04-01 14:45:46 +01:00
A_D
0ca9e81eca
Final fixups for WinConfig
...
Added delete method
Fixed missing sub_key arg to CreateKeyEx
2021-04-01 14:45:45 +01:00
A_D
bb431b83c1
Added bool support to MacConfig
2021-04-01 14:45:45 +01:00
A_D
9e1bb0a2a2
Added bool support to WinConfig
2021-04-01 14:45:45 +01:00
A_D
82fc4b56f7
Added bool to valid set args
2021-04-01 14:45:45 +01:00
A_D
63c3c55b9b
Cleaned up windows imports
2021-04-01 14:45:45 +01:00
A_D
a5140f0be2
Replaced getenv with os.getenv
2021-04-01 14:45:45 +01:00
A_D
0e339111f1
Made sure to grab the correct dir for paths on windows
2021-04-01 14:45:45 +01:00
Athanasius
b3cc94031b
Removed old config code
...
# Conflicts:
# config.py
2021-04-01 14:45:45 +01:00
A_D
4eaf7175a0
Reimplemented string escaping on LinuxConfig
2021-04-01 14:45:45 +01:00
A_D
3e1a3aaf9c
Added bool support to LinuxConfig
2021-04-01 14:45:45 +01:00
A_D
55585342e1
Added disable bool for winsparkle checks
2021-04-01 14:45:45 +01:00
A_D
7f53230a95
Cleaned up imports
2021-04-01 14:45:45 +01:00
A_D
54023725e9
Made sure to catch exceptions in get()
...
The various get_* functions vary in implementation, but some raise a
ValueError when they are used with a key of the wrong type. This catches
that ValueError when hunting for a valid type.
2021-04-01 14:45:45 +01:00
A_D
36f80d6b15
Updated docstrings, added bool support
2021-04-01 14:45:45 +01:00
A_D
0367dd8ba0
Added legacy password subsystem to AbstractConfig
2021-04-01 14:45:45 +01:00
A_D
e3807648f7
Added linux AbstractConfig implementation
2021-04-01 14:45:45 +01:00
A_D
482c502f52
Added darwin config implementation
2021-04-01 14:45:45 +01:00
A_D
6b464432bf
Simplified __get_registry logic. Added Docstrings
2021-04-01 14:45:45 +01:00
A_D
6a159c0a25
Added Abstract config class
...
The abstract class will be implemented by per-platform subclasses, which
will be set as the singleton at the end of development.
2021-04-01 14:45:45 +01:00
A_D
8104359a72
Resolved mypy windll errors
2021-04-01 14:45:45 +01:00
A_D
bbcf5c9daa
Removed unknown error log, added defaults
2021-04-01 14:45:45 +01:00
Athanasius
2f35275024
config.py: Revert conditional orders for Windows Registry gets
...
I failed to realise the values I'd moved earlier in the conditional were
being passed by reference to the ctypes call. Thus they had initial
values only upon test, rather than the 'returned' values as they should.
This caused no values to be loaded from the Registry!
2021-04-01 14:45:44 +01:00
Athanasius
61a714513e
config.py: Final function type annotations
2021-04-01 14:45:44 +01:00
Athanasius
1e24c297e0
config.py: Don't need to sub-class object
2021-04-01 14:45:44 +01:00
Athanasius
cb795b2230
config.py: Remove u-prefix from strings. More specific Exceptions
...
* u-prefix is un-necessary, remove it.
* We should get ValueError in some cases, so catch it first.
* Change debug log for if linux config file not yet present.
2021-04-01 14:45:44 +01:00
Athanasius
0274c98e50
config.py: Convert darwin test to isinstance(val, list) as well
2021-04-01 14:45:44 +01:00
Athanasius
f356d9c1d1
config.py: No need for typing.Iterable
2021-04-01 14:45:44 +01:00
Athanasius
93dc1a988a
config.py: linux Config class & overall typing
...
* This changes the test in set() from hasattr(val, '__iter__') to
isinstance(val, list) as the passed values *should* be lists for that
case.
2021-04-01 14:45:43 +01:00
Athanasius
b7f41796c9
config.py: win32 Config class cleanup
2021-04-01 14:45:43 +01:00
Athanasius
854c79c070
config.py: Log exception type from darwin getint()
...
* Also sets up `logger`.
2021-04-01 14:45:43 +01:00
Athanasius
fcb7685d71
config.py: darwin Config class code cleanup
...
# Conflicts:
# config.py
2021-04-01 14:45:43 +01:00
Athanasius
07fd4dc634
config.py: ctypes import order
2021-04-01 14:45:43 +01:00
Athanasius
c3150dae76
config.py: More import clean & misc.
2021-04-01 14:45:43 +01:00
Athanasius
b2629286b4
config.py: top-level docstring, import order, minor edits
2021-04-01 14:45:43 +01:00