Beispiel #1
0
    def get_search_tree_node(cls):
        """Class method for generating the search tree node for this model
        instance.

        :return:
          the tree node for this model instance

        :rtype: `jb_common.search.SearchTreeNode`
        """
        search_fields = search.convert_fields_to_search_fields(cls)
        return search.SearchTreeNode(cls, {}, search_fields)
Beispiel #2
0
    def get_search_tree_node(cls):
        """Class method for generating the search tree node for this model
        instance.

        :return:
          the tree node for this model instance

        :rtype: `jb_common.search.SearchTreeNode`
        """
        related_models = {InformalLayer: "informal_layers"}
        return search.SearchTreeNode(
            cls,
            related_models,
            search_fields=search.convert_fields_to_search_fields(cls))
Beispiel #3
0
    def get_search_tree_node(cls):
        """Class method for generating the search tree node for this model
        instance.

        :return:
          the tree node for this model instance

        :rtype: `jb_common.search.SearchTreeNode`
        """
        search_fields = search.convert_fields_to_search_fields(
            cls,
            excluded_fieldnames=[
                "additional_process_data", "color", "always_collapsed"
            ])
        related_models = {}
        return search.SearchTreeNode(cls, related_models, search_fields)