def snippet_list(request, page=None):
 if (not test_user_authenticated(request)):
  return login(request, next='/cobbler_web/snippet/list', expired=True)
 snippets = remote.get_autoinstall_snippets(request.session['token'])
 snippet_list = []
 for snippet in snippets:
  snippet_list.append((snippet, 'editable'))
 t = get_template('snippet_list.tmpl')
 html = t.render(RequestContext(request, {'what': 'snippet', 'snippets': snippet_list, 'version': remote.extended_version(request.session['token'])['version'], 'username': username}))
 return HttpResponse(html)

def snippet_list ( request , page = None ) : if ( not test_user_authenticated ( request ) ) : return login ( request , next = '/cobbler_web/snippet/list' , expired = True ) snippets = remote . get_autoinstall_snippets ( request . session [ 'token' ] ) snippet_list = [ ] for snippet in snippets : snippet_list . append ( ( snippet , 'editable' ) ) t = get_template ( 'snippet_list.tmpl' ) html = t . render ( RequestContext ( request , { 'what' : 'snippet' , 'snippets' : snippet_list , 'version' : remote . extended_version ( request . session [ 'token' ] ) [ 'version' ] , 'username' : username } ) ) return HttpResponse ( html )
this page lists all available snippets and has links to edit them .