(dbms)
@param dbms: database management system to be set into the knowledge
    base as fingerprint.
    @type dbms: C{str}
def setDbms(dbms):
    """
    @param dbms: database management system to be set into the knowledge
    base as fingerprint.
    @type dbms: C{str}
    """

    hashDBWrite(HASHDB_KEYS.DBMS, dbms)

    _ = "(%s)" % ("|".join([alias for alias in SUPPORTED_DBMS]))
    _ = re.search("^%s" % _, dbms, re.I)

    if _:
        dbms = _.group(1)

    Backend.setDbms(dbms)

    logger.info("the back-end DBMS is %s" % Backend.getDbms())
def setDbms ( dbms ) : hashDBWrite ( HASHDB_KEYS . DBMS , dbms ) _ = "(%s)" % ( "|" . join ( [ alias for alias in SUPPORTED_DBMS ] ) ) _ = re . search ( "^%s" % _ , dbms , re . I ) if _ : dbms = _ . group ( 1 ) Backend . setDbms ( dbms ) logger . info ( "the back-end DBMS is %s" % Backend . getDbms ( ) )