(app)
return rv
列举该app下的所有权限
列举该app下的所有权限
列举该app下的所有权限
def list_perm_names(app):
    """列举该app下的所有权限"""
    rv = set()
    rv.add(get_perm_name(app))
    rv.update(
        get_perm_name(app, permission)
        for permission in permissions
    )
    return rv
def list_perm_names ( app ) : rv = set ( ) rv . add ( get_perm_name ( app ) ) rv . update ( get_perm_name ( app , permission ) for permission in permissions ) return rv