#NEWLINE# @ property #NEWLINE# def page_count( self ) : #NEWLINE# #INDENT# if ( self . total != ( - 1 ) ) : #NEWLINE# #INDENT# pages = int ( ceil ( ( ( 0.0 + self . total ) / self . limit ) ) ) #NEWLINE# return pages #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None