fantasy/utils.py
def get_config(app, prefix='hive_'):
    """Conveniently get the security configuration for the specified
    application without the annoying 'SECURITY_' prefix.

    :param app: The application to inspect
    """
    items = app.config.items()
    prefix = prefix.upper()

    def strip_prefix(tup):
        return (tup[0].replace(prefix, ''), tup[1])

    return dict([strip_prefix(i) for i in items if i[0].startswith(prefix)])
def get_config(app, prefix='hive_'):
    items = app.config.items()
    prefix = prefix.upper()

    def strip_prefix(tup):
        return (tup[0].replace(prefix, ''), tup[1])

    return dict([strip_prefix(i) for i in items if i[0].startswith(prefix)])
def get_config ( app , prefix = 'hive_' ) : items = app . config . items ( ) prefix = prefix . upper ( ) def strip_prefix ( tup ) : return ( tup [ 0 ] . replace ( prefix , '' ) , tup [ 1 ] ) return dict ( [ strip_prefix ( i ) for i in items if i [ 0 ] . startswith ( prefix ) ] )
Conveniently get the security configuration for the specified
    application without the annoying 'SECURITY_' prefix.

    :param app: The application to inspect
Conveniently get the security configuration for the specified application without the annoying SECURITY_ prefix .