@classmethod
def removeMine(class_, o, user, page):
    """If p_user has set a lock on p_page, this method removes it. This
           method is called when the user that locked a page consults PX "view"
           for this page. In this case, we consider that the user has left the
           edit page in an unexpected way and we remove the lock."""
    if hasattr(o, 'locks') and page in o.locks and user.login == o.locks[page][
        0]:
        del o.locks[page]
