#NEWLINE# def get_ticket( self , ticket_id ) : #NEWLINE# #INDENT# 'Return a single ticket with all occurrences.' #NEWLINE# row = self . engine . execute ( self . tickets . select ( ) . where ( ( self . tickets . c . ticket_id == ticket_id ) ) ) . fetchone ( ) #NEWLINE# if ( row is not None ) : #NEWLINE# #INDENT# return Ticket ( self , self )