datatracker/ietf/views.py
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00

15 lines
457 B
Python

# Copyright The IETF Trust 2007, All Rights Reserved
from django.shortcuts import render_to_response as render
import urls
import re
def apps(request):
paths = []
for pattern in urls.urlpatterns:
path = pattern.regex.pattern.split("/")[0][1:]
if not re.search("[^a-z]", path) and not path in ["my", "feeds"]:
paths.append(path)
apps = list(set(paths))
apps.sort()
return render("apps.html", {"apps": apps })