#NEWLINE# def crumble( self , instance , attrs ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# 'id' : instance . id . hex , #NEWLINE# 'name' : instance . label , #NEWLINE# 'project' : instance . project , #NEWLINE# 'author' : instance . author , #NEWLINE# 'message' : instance . message , #NEWLINE# 'link' : build_uri ( ( '/changes/%s/' % ( result . id . hex , ) ) ) , #NEWLINE# 'dateCreated' : instance . date_created . isoformat ( ) , #NEWLINE# 'dateModified' : instance . date_modified . isoformat ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if hasattr ( instance , 'last_job' ) : #NEWLINE# #INDENT# result [ 'lastBuild' ] = instance . last_job #NEWLINE# #UNINDENT# return result