1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

294 Commits

Author SHA1 Message Date
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
Athanasius
3a0423381f Version to 4.2.0-beta1 to distinguish Python 3.8 builds
* I don't want to be checking something against 4.1.x releases when my
  last build was with Python 3.8.

# Conflicts:
#	config.py

# Conflicts:
#	config.py

# Conflicts:
#	config.py
2021-04-01 14:45:39 +01:00
Athanasius
d458034471 Release 4.2.7: appversion and changelog 2021-04-01 14:22:12 +01:00
Athanasius
25fd5ffff9 Release 4.2.6: appversion & changelog 2021-04-01 11:37:18 +01:00
Athanasius
f9cc742de4 Release 4.2.5: appversion and changelog 2021-03-29 16:02:17 +01:00
Athanasius
eed8db965a config.py: Compatibility layer for newer API calls.
This way a plugin updated for 5.0.0+ will work on next stable release.
2021-03-28 11:07:52 +01:00
Athanasius
d01404b160 Release 4.2.4: appversion and changelog 2021-03-23 14:29:14 +00:00
Athanasius
22811adf30 Release 4.2.3: appversion and changelog 2021-03-18 12:14:10 +00:00
Athanasius
a532f38e2e Extend EDCD copyright into 2021. 2021-03-17 17:34:06 +00:00
Athanasius
aff1cfa6c8 Release 4.2.2: appversion and changelog 2021-03-17 12:08:50 +00:00
Athanasius
977fec25b0 Release 4.2.1: appversion and changelog 2021-03-15 19:11:27 +00:00
Athanasius
5b1bd01c56 Release 4.2.0: appversion and changelog 2021-03-12 12:39:42 +00:00
Athanasius
773629afbe Pre-Release 4.2.0-beta3: version and changelog 2021-03-09 12:43:48 +00:00
Athanasius
8052998658 Pre-Release 4.2.0-beta2: version and changelog 2021-03-06 18:55:35 +00:00