#NEWLINE# def _add_allocation( session , gre_id , allocated = False ) : #NEWLINE# #INDENT# allocation = type_gre . GreAllocation ( gre_id = gre_id , allocated = allocated ) #NEWLINE# allocation . save ( session )