(request, domain, app)
return vellum_features
Returns the context of features passed into vellum when it is initialized.
Returns the context of features passed into vellum when it is initialized.
Returns the context of features passed into vellum when it is initialized .
def _get_vellum_features(request, domain, app):
    """
    Returns the context of features passed into vellum when it is initialized.
    """
    vellum_features = toggles.toggles_dict(username=request.user.username,
                                           domain=domain)
    vellum_features.update({
        'group_in_field_list': app.enable_group_in_field_list,
        'image_resize': app.enable_image_resize,
        'markdown_in_groups': app.enable_markdown_in_groups,
        'lookup_tables': domain_has_privilege(domain, privileges.LOOKUP_TABLES),
        'templated_intents': domain_has_privilege(domain,
                                                  privileges.TEMPLATED_INTENTS),
        'custom_intents': domain_has_privilege(domain,
                                               privileges.CUSTOM_INTENTS),
        'rich_text': True,
        'sorted_itemsets': app.enable_sorted_itemsets,
        'advanced_itemsets': add_ons.show("advanced_itemsets", request, app),
        'markdown_tables': app.enable_markdown_tables,
    })
    return vellum_features
def _get_vellum_features ( request , domain , app ) : vellum_features = toggles . toggles_dict ( username = request . user . username , domain = domain ) vellum_features . update ( { 'group_in_field_list' : app . enable_group_in_field_list , 'image_resize' : app . enable_image_resize , 'markdown_in_groups' : app . enable_markdown_in_groups , 'lookup_tables' : domain_has_privilege ( domain , privileges . LOOKUP_TABLES ) , 'templated_intents' : domain_has_privilege ( domain , privileges . TEMPLATED_INTENTS ) , 'custom_intents' : domain_has_privilege ( domain , privileges . CUSTOM_INTENTS ) , 'rich_text' : True , 'sorted_itemsets' : app . enable_sorted_itemsets , 'advanced_itemsets' : add_ons . show ( "advanced_itemsets" , request , app ) , 'markdown_tables' : app . enable_markdown_tables , } ) return vellum_features