def get_page_draft(page):
 if page:
  if page.publisher_is_draft:
   return page
  else:
   return page.publisher_draft
 else:
  return None

def get_page_draft ( page ) : if page : if page . publisher_is_draft : return page else : return page . publisher_draft else : return None
returns the draft version of a page .