def database(dburl=None, **params):
 dbn = params.pop('dbn')
 if (dbn in _databases):
  return _databases[dbn](**params)
 else:
  raise UnknownDB, dbn

def database ( dburl = None , ** params ) : dbn = params . pop ( 'dbn' ) if ( dbn in _databases ) : return _databases [ dbn ] ( ** params ) else : raise UnknownDB , dbn
database setup .