#NEWLINE# @ c3bottles . route ( '/label/all.pdf' ) #NEWLINE# def dp_all_labels( ) : #NEWLINE# #INDENT# from StringIO import StringIO #NEWLINE# from pyPdf import PdfFileReader , PdfFileWriter #NEWLINE# output = PdfFileWriter ( ) #NEWLINE# for dp in db . session . query ( DropPoint ) . all ( ) : #NEWLINE# #INDENT# if ( not dp . removed ) : #NEWLINE# #INDENT# output . addPage ( PdfFileReader ( StringIO ( _pdf ( dp . number ) ) ) . getPage ( 0 ) ) #NEWLINE# #UNINDENT# #UNINDENT# f = StringIO ( ) #NEWLINE# output . write ( output ) #NEWLINE# return Response ( f . getvalue ( ) , mimetype = 'application/pdf' )