Ejemplo n.º 1
0
 def get_context_data(self, **kwargs):
     context = super(ArtifactHomeView, self).get_context_data(**kwargs)
     modifiers = God.get_all_modifiers()
     groups = ArtifactGroup.objects.all()
     context.update(
         {'groups': groups, 'group': self.group, 'modifiers': modifiers})
     return context
Ejemplo n.º 2
0
def artifact_home(request, group=None):
    if group is None:
        group = 'Default'

    group = get_object_or_404(ArtifactGroup, name=group)
    artifacts = group.artifact_set.all()
    modifiers = God.get_all_modifiers()

    return render_to_response('cpanel/artifact_home.html',
                              {'groups': ArtifactGroup.objects.all(),
                               'artifacts': artifacts,
                               'module': 'artifacts',
                               'group': group,
                               'modifiers': modifiers,
                               },
                              context_instance=RequestContext(request))
Ejemplo n.º 3
0
def artifact_home(request, group=None):
    if group is None:
        group = 'Default'

    group = get_object_or_404(ArtifactGroup, name=group)
    artifacts = group.artifact_set.all()
    modifiers = God.get_all_modifiers()

    return render_to_response('cpanel/artifact_home.html', {
        'groups': ArtifactGroup.objects.all(),
        'artifacts': artifacts,
        'module': 'artifacts',
        'group': group,
        'modifiers': modifiers,
    },
                              context_instance=RequestContext(request))