(-r5465:HEAD from branch/iola/shimfree). Copying relevant commit messages here: - Deleted dead code in many places. - Renamed id-something to draft-something, make the "is this eligible for expiration" logic clearer - Added a name for IPR search URL - Revamped the ballot popup view - URL reversed the IPR search link instead of hardcoding it - Cleaned up search views and remove dead code, port them to the new DB schema, hack related views in iesg/ and wginfo/ to use the new search interfaces, avoid camelCase in search GET parameters (with backwards-compat fallback), add some simple search unit tests, remove caching from views_search.py index pages as they're now pretty fast to generate, rewrite ballot popup JS, regularize some CSS classes to use hyphen-notation rather than camelCase, move some of the search templates to doc/. idrfc/ now mostly contains some wrapper code still in use by other subdirs, some ported code not yet moved, and dead code. - Fixed output bug in test crawler and print referrer upon errors so it's easier to figure out where a link came from - Added /doc/in-last-call/ to crawler, report original page as referrer in a redirect chain rather than intermediate URL - Ported idindex to new schema, speed them up, add tests, refactor index page in views_search to share code with the text index file, get rid of some special-case idindex filters from ietf_filters, move "/drafts/" redirects to a file in /doc/ - Ported /idtracker/status/ and /idtracker/status/last-call/ overview of drafts in IESG process to new schema in /doc/iesg/ and /doc/iesg/last-call/ - Added redirects for all of /idtracker/*, removed all view code and other dead code from idtracker/ - Removed the idtracker sitemap indexing drafts - in its current form, it adds nothing of value to the HTML-based /doc/all/ view, and it's pretty slow - Ported idtracker feeds to new schema, move them to doc/, cleaned up idtracker/ - only templatetags/ietf_filters and proxy code is left - Legacy-Id: 5836
84 lines
3.4 KiB
Python
84 lines
3.4 KiB
Python
# Copyright The IETF Trust 2007, 2009, All Rights Reserved
|
|
|
|
import django
|
|
from django.conf.urls.defaults import patterns, include, handler404, handler500
|
|
from django.contrib import admin
|
|
|
|
from ietf.iesg.feeds import IESGAgenda
|
|
from ietf.doc.feeds import DocumentChanges, InLastCall
|
|
from ietf.ipr.feeds import LatestIprDisclosures
|
|
from ietf.proceedings.feeds import LatestWgProceedingsActivity
|
|
from ietf.liaisons.feeds import Liaisons
|
|
from ietf.wgcharter.feeds import GroupChanges
|
|
|
|
from ietf.liaisons.sitemaps import LiaisonMap
|
|
from ietf.ipr.sitemaps import IPRMap
|
|
from ietf.announcements.sitemaps import NOMCOMAnnouncementsMap
|
|
|
|
from django.conf import settings
|
|
|
|
admin.autodiscover()
|
|
admin.site.disable_action('delete_selected')
|
|
|
|
|
|
feeds = {
|
|
'iesg-agenda': IESGAgenda,
|
|
'last-call': InLastCall,
|
|
'document-changes': DocumentChanges,
|
|
'group-changes': GroupChanges,
|
|
'ipr': LatestIprDisclosures,
|
|
'liaison': Liaisons,
|
|
'wg-proceedings' : LatestWgProceedingsActivity
|
|
}
|
|
|
|
sitemaps = {
|
|
'liaison': LiaisonMap,
|
|
'ipr': IPRMap,
|
|
'nomcom-announcements': NOMCOMAnnouncementsMap,
|
|
}
|
|
|
|
urlpatterns = patterns('',
|
|
(r'^$', 'ietf.idrfc.views.main'),
|
|
(r'^accounts/', include('ietf.ietfauth.urls')),
|
|
(r'^admin/', include(admin.site.urls)),
|
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
(r'^ann/', include('ietf.announcements.urls')),
|
|
(r'^community/', include('ietf.community.urls')),
|
|
(r'^cookies/', include('ietf.cookies.urls')),
|
|
(r'^doc/', include('ietf.idrfc.urls')),
|
|
(r'^drafts/', include('ietf.doc.redirect_drafts_urls')),
|
|
(r'^feed/comments/(?P<remainder>.*)/$', 'django.views.generic.simple.redirect_to', { 'url': '/feed/document-changes/%(remainder)s/'}),
|
|
(r'^feed/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', { 'feed_dict': feeds}),
|
|
(r'^help/', include('ietf.help.urls')),
|
|
(r'^idtracker/', include('ietf.doc.redirect_idtracker_urls')),
|
|
(r'^iesg/', include('ietf.iesg.urls')),
|
|
(r'^ipr/', include('ietf.ipr.urls')),
|
|
(r'^liaison/', include('ietf.liaisons.urls')),
|
|
(r'^list/', include('ietf.mailinglists.urls')),
|
|
(r'^meeting/', include('ietf.meeting.urls')),
|
|
(r'^person/', include('ietf.person.urls')),
|
|
(r'^release/$', 'ietf.release.views.release'),
|
|
(r'^release/(?P<version>.+)/$', 'ietf.release.views.release'),
|
|
(r'^secr/', include('ietf.secr.urls')),
|
|
(r'^sitemap-(?P<section>.+).xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
|
|
(r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', { 'sitemaps': sitemaps}),
|
|
(r'^streams/', include('ietf.ietfworkflows.urls')),
|
|
(r'^submit/', include('ietf.submit.urls')),
|
|
(r'^sync/', include('ietf.sync.urls')),
|
|
(r'^wg/', include('ietf.wginfo.urls')),
|
|
|
|
# Redirects
|
|
(r'^(?P<path>public)/', include('ietf.redirects.urls')),
|
|
|
|
# Google webmaster tools verification url
|
|
(r'^googlea30ad1dacffb5e5b.html', 'django.views.generic.simple.direct_to_template', { 'template': 'googlea30ad1dacffb5e5b.html' }),
|
|
)
|
|
|
|
if settings.SERVER_MODE in ('development', 'test'):
|
|
urlpatterns += patterns('',
|
|
(r'^(?P<path>(?:images|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
|
|
(r'^(?P<path>secr/(img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
|
|
(r'^(?P<path>robots\.txt)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
|
|
(r'^_test500/$', lambda x: None),
|
|
)
|