Ejemplo n.º 1
0
def share_links(request):
    '''links offered up on creation or "share"'''
    c = {}
    key = request.matchdict['key']
    ah.addEventContext(key, c)
    event,permissions = eh.eventAndPermissionsForAccessKey(key)
    if permissions.administer:
        return render_to_response('share_admin.mako',
                                  c,
                                  request=request)
    else:
        return render_to_response('share.mako',
                                  c,
                                  request=request)
Ejemplo n.º 2
0
def page_administer(request):
    output = {}
    key = request.matchdict['key']
    ah.addEventContext(key, output)
    return output
Ejemplo n.º 3
0
def page_gallery(request):
    key = request.matchdict['key']
    c= {}
    ah.addEventContext(key,c)
    return c