mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
name refactor
This commit is contained in:
parent
acc4d8d9e8
commit
bb2a35f2d6
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user