def __getitem__(self,name):
        """ Simple dictionary interface for getting datafields values by their names."""
        item=self.getField(name)
        if item: return item.getValue()
        raise IndexError('No such field')
 Simple dictionary interface for getting datafields values by their names.
chrome-cordova/gcmServer/xmpp/protocol.py