@staticmethod
def get_placeholder(page, slot=None):
    '\n        Returns the named placeholder or, if no «slot» provided, the first\n        editable, non-static placeholder or None.\n        '
    placeholders = page.get_placeholders()
    if slot:
        placeholders = placeholders.filter(slot=slot)
    for ph in placeholders:
        if ((not ph.is_static) and ph.is_editable):
            return ph
    return None
Returns the named placeholder or, if no «slot» provided, the first
editable, non-static placeholder or None.
@staticmethod
def get_placeholder(page, slot=None):
    '\n        Returns the named placeholder or, if no «slot» provided, the first\n        editable, non-static placeholder or None.\n        '
    placeholders = page.get_placeholders()
    if slot:
        placeholders = placeholders.filter(slot=slot)
    for ph in placeholders:
        if ((not ph.is_static) and ph.is_editable):
            return ph
    return None