def context_implements(*types):
    """
    A custom predicate to implement matching views to resources which
    implement more than one interface - in this situation Pyramid has
    trouble matching views to the second registered interface. See
    https://github.com/Pylons/pyramid/issues/409
    Accepts a list of interfaces - if ANY of them are implemented the function
    returns True
    """

def inner(context, request):
    for typ in types:
        if typ.providedBy(context):
            pass
Can a view configured for superclass be used if a view for a class was configured in Pyramid?