custom_filters ============== .. py:module:: custom_filters Attributes ---------- .. autoapisummary:: custom_filters.register Functions --------- .. autoapisummary:: custom_filters.beginswith custom_filters.get_columns_with_value custom_filters.get_columns_with_value_dic custom_filters.get_item_from_dic custom_filters.get_seshat_expert custom_filters.give_me_a_color custom_filters.in_group custom_filters.is_user_real custom_filters.make_references_look_nicer custom_filters.min_max_years custom_filters.replace_underscore_and_capitalize custom_filters.replace_underscore_and_capitalize_for_long_vars custom_filters.textincludes custom_filters.unique_descriptions custom_filters.username_from_email custom_filters.zip_lists Module Contents --------------- .. py:function:: beginswith(value, arg) .. py:function:: get_columns_with_value(instance, value) .. py:function:: get_columns_with_value_dic(instance, value) .. py:function:: get_item_from_dic(dictionary, key) .. py:function:: get_seshat_expert(user) Custom filter to get the Seshat_Expert object associated with a user. .. py:function:: give_me_a_color(value) .. py:function:: in_group(user, group_name) Checks if a user is in a given group. .. py:function:: is_user_real(user) Check if the username has an underscore and if the part after the underscore matches the domain part of the email. :param username: The username to check. :type username: str :param email: The email to check against. :type email: str :returns: True if the username is valid, False otherwise. :rtype: bool .. py:function:: make_references_look_nicer(value) .. py:function:: min_max_years(values) .. py:function:: replace_underscore_and_capitalize(value) .. py:function:: replace_underscore_and_capitalize_for_long_vars(value) .. py:function:: textincludes(value, arg) Check if a string includes a given substring. .. py:function:: unique_descriptions(values) .. py:function:: username_from_email(email) .. py:function:: zip_lists(a, b) .. py:data:: register