'Returns HTML for embedding a dataset in a page.'

@web.expose
def get_embed_html_async(self, trans, id):

    decoded_id = self.decode_id(id)
    dataset = self.hda_manager.get_accessible(decoded_id, trans.user)
    dataset = self.hda_manager.error_if_uploading(dataset)
    if dataset:
        return ("Embedded    Dataset    '%s'" % dataset.name)
