Fixed legacy mappings

This commit is contained in:
str4d
2013-08-29 04:28:03 +00:00
parent c84414b925
commit 94815e5d43

View File

@ -6,12 +6,15 @@ from flask import g, redirect, url_for
LEGACY_FUNCTIONS_MAP={
'announcements': {'function': 'blog_index', 'params': {}},
'debian': {'function': 'downloads_select', 'params': {'file': 'debian'}},
'debian': {'function': 'downloads_debian', 'params': {}},
'download': {'function': 'downloads_list', 'params': {}},
'installation': {'function': 'downloads_list', 'params': {}},
'meetings': {'function': 'meetings_index', 'params': {}},
'statusnotes': {'function': 'blog_index', 'params': {}},
}
LEGACY_PAGES_MAP={
'api': 'docs',
'applications': 'get-involved/develop/applications',
'benchmarks': 'misc/benchmarks',
'bittorrent': 'docs/applications/bittorrent',
@ -33,28 +36,27 @@ LEGACY_PAGES_MAP={
'clt': 'misc/clt',
'common_structures_spec': 'docs/spec/common-structures',
'configuration': 'docs/spec/configuration',
'contact': 'about/contact',
'contact': 'contact',
'cvs': 'misc/cvs',
'datagrams': 'docs/api/datagrams',
'dev-guidelines': 'get-involved/guides/dev-guidelines',
'developerskeys': 'get-involved/develop/developers-keys',
'donate': 'get-involved/donate',
'faq': 'support/faq',
'getinvolved': 'get-involved',
'geoip': 'docs/spec/geoip',
'glossary': 'support/glossary',
'glossary': 'about/glossary',
'halloffame': 'about/hall-of-fame',
'how': 'docs',
'how_cryptography': 'docs/how/cryptography',
'how_elgamalaes': 'docs/how/elgamal-aes',
'how_garlicrouting': 'docs/how/garlic-routing',
'how_intro': 'docs/how/intro',
'how_networkcomparisons': 'about/comparison',
'how_networkcomparisons': 'comparison',
'how_networkdatabase': 'docs/how/network-database',
'how_peerselection': 'docs/how/peer-selection',
'how_threatmodel': 'docs/how/threat-model',
'how_tunnelrouting': 'docs/how/tunnel-routing',
'htproxyports': 'support/browser-config',
'htproxyports': 'about/browser-config',
'i2cp': 'docs/protocol/i2cp',
'i2cp_spec': 'docs/spec/i2cp',
'i2np': 'docs/protocol/i2np',
@ -83,10 +85,10 @@ LEGACY_PAGES_MAP={
'newtranslators': 'get-involved/guides/new-translators',
'ntcp': 'docs/transport/ntcp',
'ntcp_discussion': 'docs/discussions/ntcp',
'othernetworks': 'about/comparison/other-networks',
'othernetworks': 'comparison/other-networks',
'papers': 'research/papers',
'performance-history': 'support/performance/history',
'performance': 'support/performance/future',
'performance-history': 'about/performance/history',
'performance': 'about/performance/future',
'plugin_spec': 'docs/spec/plugin',
'plugins': 'docs/plugins',
'ports': 'docs/ports',