@register.filter
def is_parent_of(page1, page2):
    """
    Determines whether a given page is the parent of another page

    Example::

        {% if page|is_parent_of:feincms_page %} ... {% endif %}
    """

    try:
        return page1.is_ancestor_of(page2)
    except (AttributeError, __HOLE__):
        return False


# ------------------------------------------------------------------------
dataset/ETHPy150Open feincms/feincms/feincms/templatetags/feincms_page_tags.py/is_parent_of