Proper ordering of enumeration methods, consistent with the others enumeration classes

This commit is contained in:
Bernardo Damele 2011-04-30 22:04:08 +00:00
parent 955dbc85e7
commit aeb149db22

View File

@ -14,28 +14,44 @@ class Enumeration(GenericEnumeration):
def __init__(self):
GenericEnumeration.__init__(self)
def getDbs(self):
warnMsg = "on Microsoft Access it is not possible to enumerate databases"
logger.warn(warnMsg)
return []
def getBanner(self):
warnMsg = "on Microsoft Access it is not possible to get a banner"
logger.warn(warnMsg)
return None
def getCurrentUser(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the current user"
logger.warn(warnMsg)
def getCurrentDb(self):
warnMsg = "on Microsoft Access it is not possible to get name of the current database"
logger.warn(warnMsg)
def getUsers(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the users"
logger.warn(warnMsg)
return []
def getPasswordHashes(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the user password hashes"
logger.warn(warnMsg)
return {}
def getPrivileges(self, *args):
warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges"
logger.warn(warnMsg)
return {}
def getDbs(self):
warnMsg = "on Microsoft Access it is not possible to enumerate databases"
logger.warn(warnMsg)
return []
def searchDb(self):
warnMsg = "on Microsoft Access it is not possible to search databases"
logger.warn(warnMsg)
@ -53,19 +69,3 @@ class Enumeration(GenericEnumeration):
logger.warn(warnMsg)
return []
def getCurrentUser(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the current user"
logger.warn(warnMsg)
def getUsers(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the users"
logger.warn(warnMsg)
return []
def getPrivileges(self, *args):
warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges"
logger.warn(warnMsg)
return {}