Addon Manager: Refactor Metadata

Create a Python-native metadata class. Includes unit tests, and some PyLint cleanup.
This commit is contained in:
Chris Hennes
2023-03-03 09:36:53 -06:00
committed by Chris Hennes
parent 243088a8c3
commit 0b241f78f4
19 changed files with 1471 additions and 524 deletions

View File

@@ -27,7 +27,7 @@ from typing import Optional
import FreeCAD
from PySide import QtCore
import NetworkManager
import addonmanager_utilities as utils
translate = FreeCAD.Qt.translate
@@ -67,7 +67,7 @@ class ConnectionChecker(QtCore.QThread):
"""The main work of this object: returns the decoded result of the connection request, or
None if the request failed"""
url = "https://api.github.com/zen"
result = NetworkManager.AM_NETWORK_MANAGER.blocking_get(url)
result = utils.blocking_get(url)
if result:
return result.data().decode("utf8")
return result.decode("utf8")
return None