#NEWLINE# def page_actors( request , actors , per_page ) : #NEWLINE# #INDENT# ' attempts to break a result into pages\n\n  if the number of actors is greater than per_page hand over the nick\n  of the second-to-last actor to use as an offset.\n\n  the length of actors should never be more than per_page + 1\n  ' #NEWLINE# if ( len ( actors ) > per_page ) : #NEWLINE# #INDENT# more = actors [ ( - 2 ) ] . nick #NEWLINE# return ( actors [ : ( - 1 ) ] , more ) #NEWLINE# #UNINDENT# return ( actors , None )