def page_msg(page=0):
 if isinstance(g.content, PaginatedContent):
  page_count = g.content.numPages()
 else:
  page_count = math.ceil((g.result_count / getxy().max_results))
 if (page_count > 1):
  pagemsg = '{}{}/{}{}'
  return pagemsg.format(('<' if (page > 0) else '['), ('%s%s%s' % (c.y, (page + 1), c.w)), page_count, ('>' if ((page + 1) < page_count) else ']'))
 return None

def page_msg ( page = 0 ) : if isinstance ( g . content , PaginatedContent ) : page_count = g . content . numPages ( ) else : page_count = math . ceil ( ( g . result_count / getxy ( ) . max_results ) ) if ( page_count > 1 ) : pagemsg = '{}{}/{}{}' return pagemsg . format ( ( '<' if ( page > 0 ) else '[' ) , ( '%s%s%s' % ( c . y , ( page + 1 ) , c . w ) ) , page_count , ( '>' if ( ( page + 1 ) < page_count ) else ']' ) ) return None
format information about currently displayed page to a string .