Esempio n. 1
0
def party_detail(request, object_id):
    if object_id != "none":
        object = get_object_or_404(models.party, pk=object_id)
    else:
        object = models.Nobody()

    web = webs.party_web()
    return web.object_view(request, object)
Esempio n. 2
0
def party_software_list(request, object_id):
    if object_id != "none":
        object = get_object_or_404(models.party, pk=object_id)
    else:
        object = models.Nobody()

    template='lintory/party_software_list.html'

    web = webs.party_web()
    breadcrumbs = web.get_view_breadcrumbs(object)
    breadcrumbs.append(webs.breadcrumb(web.get_software_list_url(object),"software list"))

    return render_to_response(template, {
            'object': object,
            'breadcrumbs': breadcrumbs,
            },context_instance=RequestContext(request))
Esempio n. 3
0
def party_delete(request,object_id):
    web = webs.party_web()
    object = get_object_or_404(models.party, pk=object_id)
    return web.object_delete(request, object)
Esempio n. 4
0
def party_add(request):
    web = webs.party_web()
    return web.object_add(request)
Esempio n. 5
0
def party_list(request):
    web = webs.party_web()
    filter = filters.party(request.GET or None)
    table = tables.party(request, web, filter.qs, order_by=request.GET.get('sort'))
    return web.object_list(request, filter.form, table)