mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 22:52:24 +03:00
dn is fetchable from system
This commit is contained in:
parent
cbeadd62e1
commit
bf9af4042a
1 changed files with 11 additions and 0 deletions
|
@ -83,6 +83,15 @@ class System:
|
||||||
config.read(System.Ahenk.config_path())
|
config.read(System.Ahenk.config_path())
|
||||||
return config.get('PLUGIN', 'mainModuleName')
|
return config.get('PLUGIN', 'mainModuleName')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def dn():
|
||||||
|
system = System()
|
||||||
|
try:
|
||||||
|
dn = system.db_service.select_one_result('registration', 'dn', " registered='1'")
|
||||||
|
return dn
|
||||||
|
except:
|
||||||
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_pid_number():
|
def get_pid_number():
|
||||||
pid_number = None
|
pid_number = None
|
||||||
|
@ -455,3 +464,5 @@ class System:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def model():
|
def model():
|
||||||
return cpuinfo.get_cpu_info()['model']
|
return cpuinfo.get_cpu_info()['model']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue