def get_context_data(self, **kwargs):
    context = super(PartialView, self).get_context_data(**kwargs)
    label_id = context['label_id']
    version = context['version']
    tree = generator.get_tree_paragraph(label_id, version)
    if (tree is None):
        raise Http404
    (inline_applier, p_applier, s_applier) = self.determine_appliers(label_id, version)
    builder = generate_html(tree, (inline_applier, p_applier, s_applier))
    return self.transform_context(context, builder)
def get_context_data(self, **kwargs):
    context = super(PartialView, self).get_context_data(**kwargs)
    label_id = context['label_id']
    version = context['version']
    tree = generator.get_tree_paragraph(label_id, version)
    if (tree is None):
        raise Http404
    (inline_applier, p_applier, s_applier) = self.determine_appliers(label_id, version)
    builder = generate_html(tree, (inline_applier, p_applier, s_applier))
    return self.transform_context(context, builder)