'Data used to render slice in templates'

@property
def data(self):

    d = {}
    self.token = u''
    try:
        d = self.viz.data
        self.token = d.get(u'token')
    except Exception as e:
        logging.exception(e)
        d[u'error'] = str(e)
    return {u'datasource': self.datasource_name, u'description': self.description, u'description_markeddown': self.description_markeddown, u'edit_url': self.edit_url, u'form_data': self.form_data, u'slice_id': self.id, u'slice_name': self.slice_name, u'slice_url': self.slice_url}
