#NEWLINE# def _get_logs( node , count , auth , page = 0 ) : #NEWLINE# #INDENT# '\n\n    :param Node node:\n    :param int count:\n    :param auth:\n    :return list: List of serialized logs,\n            boolean: if there are more logs\n\n    ' #NEWLINE# logs_set = node . get_aggregate_logs_queryset ( auth ) #NEWLINE# total = logs_set . count ( ) #NEWLINE# pages = math . ceil ( ( total / float ( count ) ) ) #NEWLINE# validate_page_num ( page , pages ) #NEWLINE# start = ( page * count ) #NEWLINE# stop = ( start + count ) #NEWLINE# logs = [ serialize_log ( log , auth = auth , anonymous = has_anonymous_link ( node , auth ) ) for log in logs_set [ start : stop ] ] #NEWLINE# return ( logs , total , pages )