def transaction_objects():
 from inbox.models import Calendar, Contact, Message, Event, Block, Category, Thread, Metadata
 return {'calendar': Calendar, 'contact': Contact, 'draft': Message, 'event': Event, 'file': Block, 'message': Message, 'thread': Thread, 'label': Category, 'folder': Category, 'account': Account, 'metadata': Metadata}

def transaction_objects ( ) : from inbox . models import Calendar , Contact , Message , Event , Block , Category , Thread , Metadata return { 'calendar' : Calendar , 'contact' : Contact , 'draft' : Message , 'event' : Event , 'file' : Block , 'message' : Message , 'thread' : Thread , 'label' : Category , 'folder' : Category , 'account' : Account , 'metadata' : Metadata }
return the mapping from api object name - which becomes the transaction .