Minor code refactoring

This commit is contained in:
Bernardo Damele
2012-01-13 16:49:52 +00:00
parent 337973df77
commit b03f91437b
4 changed files with 45 additions and 16 deletions

View File

@@ -503,6 +503,22 @@ class Backend:
return kb.os
@staticmethod
def setOsVersion(version):
if version is None:
return None
elif kb.osVersion is None and isinstance(version, basestring):
kb.osVersion = version
@staticmethod
def setOsServicePack(sp):
if version is None:
return None
elif kb.osSP is None and isinstance(version, int):
kb.osSP = version
@staticmethod
def setArch():
msg = "what is the back-end database management system architecture?"
@@ -585,6 +601,14 @@ class Backend:
def getOs():
return kb.os
@staticmethod
def getOsVersion():
return kb.osVersion
@staticmethod
def getOsServicePack():
return kb.osSP
@staticmethod
def getArch():
if kb.arch is None: