'Uploads the index definitions.'

def DoUpload(self):

    StatusUpdate('Uploading    index    definitions.', self.error_fh)
    with TempChangeField(self.definitions, 'application', None) as app_id:
        self.rpcserver.Send('/api/datastore/index/add', app_id=app_id, payload=self.definitions.ToYAML())
