name refactor

This commit is contained in:
Matthias 2021-09-25 00:06:40 +02:00
parent acc4d8d9e8
commit bb2a35f2d6
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -161,23 +161,21 @@ class GitStatus:
class Definition: class Definition:
key: str = 'N' key: str = 'N'
status: int = 2 status: int = 2
msg_sign: str = '' msg: str = ''
msg_key: str = ''
def __init__(self, key: str = 'N', status: int = 2, msg_sign: str = '', msg_key: str = '') -> None: def __init__(self, key: str = 'N', status: int = 2, msg: str = '') -> None:
self.key = key self.key = key
self.status = status self.status = status
self.msg_sign = msg_sign self.msg = msg
self.msg_key = msg_key
N = Definition(key='N', status=2, msg_sign='no signature',) N = Definition(key='N', status=2, msg='no signature',)
G = Definition(key='G', status=0, msg_sign='valid signature',) G = Definition(key='G', status=0, msg='valid signature',)
B = Definition(key='B', status=2, msg_sign='bad signature',) B = Definition(key='B', status=2, msg='bad signature',)
U = Definition(key='U', status=1, msg_sign='good signature, unknown validity',) U = Definition(key='U', status=1, msg='good signature, unknown validity',)
X = Definition(key='X', status=1, msg_sign='good signature, expired',) X = Definition(key='X', status=1, msg='good signature, expired',)
Y = Definition(key='Y', status=1, msg_sign='good signature, expired key',) Y = Definition(key='Y', status=1, msg='good signature, expired key',)
R = Definition(key='R', status=2, msg_sign='good signature, revoked key',) R = Definition(key='R', status=2, msg='good signature, revoked key',)
E = Definition(key='E', status=1, msg_sign='cannot be checked',) E = Definition(key='E', status=1, msg='cannot be checked',)
class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin): class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin):