dn is fetchable from system

This commit is contained in:
Volkan Şahin 2016-07-25 11:04:21 +03:00
parent cbeadd62e1
commit bf9af4042a

View file

@ -83,6 +83,15 @@ class System:
config.read(System.Ahenk.config_path())
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
def get_pid_number():
pid_number = None
@ -455,3 +464,5 @@ class System:
@staticmethod
def model():
return cpuinfo.get_cpu_info()['model']