Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.226.165.234
from twisted.internet.defer import succeed
current_instance = None
class TestPlugin(object):
def __init__(self):
self.sysinfo = None
self.has_run = False
global current_instance
current_instance = self
def register(self, sysinfo):
self.sysinfo = sysinfo
def run(self):
self.has_run = True
self.sysinfo.add_header("Test header", "Test value")
self.sysinfo.add_note("Test note")
self.sysinfo.add_footnote("Test footnote")
return succeed(None)
|