def page(self): """The page for this node, which is a RegexURLPattern.""" if self.template: return page(self.full_path, self.template, node_root=self.root, node=self) else: return None
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', # /apps is temporarily redirected to /apps/partners as per # https://bugzilla.mozilla.org/show_bug.cgi?id=751903 page('', 'marketplace/marketplace.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('', 'firefoxos/firefoxos.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page from privacy import views urlpatterns = patterns( '', page('/policies/firefox', 'privacy/firefox.html'), page('/policies/websites', 'privacy/websites.html'), page('/policies/thunderbird', 'privacy/thunderbird.html'), page('/policies/marketplace', 'privacy/marketplace.html'), page('/policies/persona', 'privacy/persona.html'), page('/policies/sync', 'privacy/sync.html'), page('/policies/test-pilot', 'privacy/test-pilot.html'), page('/policies/archive/firefox-octobe-2006', 'privacy/archive/firefox-october-2006.html'), page('/policies/archive/firefox-june-2008', 'privacy/archive/firefox-june-2008.html'), page('/policies/archive/firefox-january-2009', 'privacy/archive/firefox-january-2009.html'), page('/policies/archive/firefox-mobile-september-2009', 'privacy/archive/firefox-mobile-september-2009.html'), page('/policies/archive/firefox-january-2010', 'privacy/archive/firefox-january-2010.html'), page('/policies/archive/firefox-december-2010', 'privacy/archive/firefox-december-2010.html'), url(r'^/$', views.privacy, name='privacy.index'),
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('annualreport/2011', 'foundation/annualreport/2011.html'), page('annualreport/2011/faq', 'foundation/annualreport/2011faq.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from redirects.util import redirect from mozorg.util import page import views urlpatterns = patterns( '', url(r'^$', views.grants, name='grants'), url(r'^(?P<slug>[\w-]+).html$', views.grant_info, name='grant_info'), page('reports/gnome-haeger-report', 'grants/reports/gnome-haeger-report.html'), page('reports/ushahidi-chile-report', 'grants/reports/ushahidi-chile-report.html'), redirect(r'.*/$', views.grants), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', # /apps is temporarily redirected to /apps/partners as per # https://bugzilla.mozilla.org/show_bug.cgi?id=751903 page('', 'marketplace/marketplace.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('', 'persona/persona.html'), page('about', 'persona/about.html'), page('privacy-policy', 'persona/privacy-policy.html'), page('terms-of-service', 'persona/terms-of-service.html'), page('developer-faq', 'persona/developer-faq.html') )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('trans-block-reload-test', 'trans_block_reload_test.html'), page('active-de-lang-file', 'active_de_lang_file.html'), page('inactive-de-lang-file', 'inactive_de_lang_file.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('', 'webmaker/index.html'), page('videos', 'webmaker/videos.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('eula', 'legal/eula.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('privacy', 'privacy/index.html'), page('privacy/policies/firefox', 'privacy/firefox.html'), page('privacy/policies/websites', 'privacy/websites.html'), page('privacy/policies/thunderbird', 'privacy/thunderbird.html'), page('privacy/policies/marketplace', 'privacy/marketplace.html'), page('privacy/policies/persona', 'privacy/persona.html'), page('privacy/policies/sync', 'privacy/sync.html'), page('privacy/policies/test-pilot', 'privacy/test-pilot.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('', 'gameon/index.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('annualreport/2011', 'foundation/annualreport/2011.html'), page('annualreport/2011/faq', 'foundation/annualreport/2011faq.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('', 'persona/persona.html'), page('about', 'persona/about.html'), page('privacy-policy', 'persona/privacy-policy.html'), page('terms-of-service', 'persona/terms-of-service.html'), page('developer-faq', 'persona/developer-faq.html'))
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('', 'gameon/index.html'), )
from django.conf.urls.defaults import * from mozorg.util import page import views urlpatterns = patterns( "", page("research", "research/research.html"), page("research/people", "research/people.html"), page("research/emscripten", "research/emscripten.html"), page("research/rust", "research/rust.html"), page("research/servo", "research/servo.html"), page("research/shumway", "research/shumway.html"), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page import views urlpatterns = patterns('', page('research', 'research/research.html'), page('research/researchers', 'research/researchers.html'), page('research/projects', 'research/projects.html'), page('research/collaborations', 'research/collaborations.html'), page('research/publications', 'research/publications.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('', 'styleguide/home.html'), page('identity/mozilla/branding', 'styleguide/identity/mozilla-branding.html'), page('identity/mozilla/color', 'styleguide/identity/mozilla-color.html'), page('identity/mozilla/innovations', 'styleguide/identity/mozilla-innovations.html'), page('identity/firefox/branding', 'styleguide/identity/firefox-branding.html'), page('identity/firefox/channels', 'styleguide/identity/firefox-channels.html'), page('identity/firefox/wordmarks', 'styleguide/identity/firefox-wordmarks.html'), page('identity/firefox/color', 'styleguide/identity/firefox-color.html'), page('identity/firefoxos/branding', 'styleguide/identity/firefoxos-branding.html'), page('identity/firefox-family/overview', 'styleguide/identity/firefox-family-overview.html'), page('identity/firefox-family/platform', 'styleguide/identity/firefox-family-platform.html'), page('identity/marketplace/branding', 'styleguide/identity/marketplace-branding.html'), page('identity/marketplace/color', 'styleguide/identity/marketplace-color.html'), page('identity/webmaker/branding', 'styleguide/identity/webmaker-branding.html'), page('identity/webmaker/color', 'styleguide/identity/webmaker-color.html'),
from django.conf.urls.defaults import * from redirects.util import redirect from mozorg.util import page import views urlpatterns = patterns('', url(r'^$', views.grants, name='grants'), url(r'^(?P<slug>[\w-]+).html$', views.grant_info, name='grant_info'), page('reports/gnome-haeger-report', 'grants/reports/gnome-haeger-report.html'), page('reports/ushahidi-chile-report', 'grants/reports/ushahidi-chile-report.html'), redirect(r'.*/$', views.grants), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('', 'styleguide/home.html'), page('identity/mozilla/branding', 'styleguide/identity/mozilla-branding.html'), page('identity/mozilla/color', 'styleguide/identity/mozilla-color.html'), page('identity/mozilla/innovations', 'styleguide/identity/mozilla-innovations.html'), page('identity/firefox/branding', 'styleguide/identity/firefox-branding.html'), page('identity/firefox/channels', 'styleguide/identity/firefox-channels.html'), page('identity/firefox/wordmarks', 'styleguide/identity/firefox-wordmarks.html'), page('identity/firefox/color', 'styleguide/identity/firefox-color.html'), page('identity/firefoxos/branding', 'styleguide/identity/firefoxos-branding.html'), page('identity/firefox-family/overview', 'styleguide/identity/firefox-family-overview.html'), page('identity/firefox-family/platform', 'styleguide/identity/firefox-family-platform.html'), page('identity/marketplace/branding', 'styleguide/identity/marketplace-branding.html'), page('identity/marketplace/color', 'styleguide/identity/marketplace-color.html'), page('identity/webmaker/branding', 'styleguide/identity/webmaker-branding.html'), page('identity/webmaker/color', 'styleguide/identity/webmaker-color.html'), page('identity/thunderbird/logo', 'styleguide/identity/thunderbird-logo.html'), page('identity/thunderbird/channels', 'styleguide/identity/thunderbird-channels.html'), page('identity/thunderbird/wordmarks', 'styleguide/identity/thunderbird-wordmarks.html'), page('identity/thunderbird/color', 'styleguide/identity/thunderbird-color.html'),
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from commonware.decorators import xframe_allow from facebookapps import views from facebookapps.decorators import extract_app_data, facebook_locale from mozorg.util import page urlpatterns = patterns('', url(r'^tab_redirect/$', views.tab_redirect, name='facebookapps.tab_redirect'), url(r'^tab_redirect/(?P<redirect_type>[a-z]*)/$', views.tab_redirect, name='facebookapps.tab_redirect'), page('channel', 'facebookapps/channel.html'), page('downloadtab', 'facebookapps/downloadtab.html', decorators=(xframe_allow, extract_app_data, facebook_locale)), page('downloadtab/noscroll', 'facebookapps/downloadtab.html', decorators=(xframe_allow, extract_app_data, facebook_locale), noscroll=True), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('privacy', 'privacy/index.html'), page('privacy/policies/firefox', 'privacy/firefox.html'), page('privacy/policies/websites', 'privacy/websites.html'), page('privacy/policies/thunderbird', 'privacy/thunderbird.html'), page('privacy/policies/marketplace', 'privacy/marketplace.html'), page('privacy/policies/persona', 'privacy/persona.html'), page('privacy/policies/sync', 'privacy/sync.html'), page('privacy/policies/test-pilot', 'privacy/test-pilot.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', # /apps is temporarily redirected to /apps/partners as per # https://bugzilla.mozilla.org/show_bug.cgi?id=751903 page('', 'marketplace/marketplace.html'), page('partners', 'marketplace/partners.html') )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns("", page("", "webmaker/index.html"))
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('privacy', 'privacy/index.html'), page('privacy/policies/firefox', 'privacy/firefox.html'), page('privacy/policies/websites', 'privacy/websites.html'), page('privacy/policies/thunderbird', 'privacy/thunderbird.html'), page('privacy/policies/marketplace', 'privacy/marketplace.html'), page('privacy/policies/persona', 'privacy/persona.html'), page('privacy/policies/sync', 'privacy/sync.html'), page('privacy/policies/test-pilot', 'privacy/test-pilot.html'), page('privacy/policies/archive/firefox-octobe-2006', 'privacy/archive/firefox-october-2006.html'), page('privacy/policies/archive/firefox-june-2008', 'privacy/archive/firefox-june-2008.html'), page('privacy/policies/archive/firefox-january-2009', 'privacy/archive/firefox-january-2009.html'), page('privacy/policies/archive/firefox-mobile-september-2009', 'privacy/archive/firefox-mobile-september-2009.html'), page('privacy/policies/archive/firefox-january-2010', 'privacy/archive/firefox-january-2010.html'), page('privacy/policies/archive/firefox-december-2010', 'privacy/archive/firefox-december-2010.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('', 'firefoxos/firefoxos.html'), )
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns( '', page('firefox/central', 'firefox/central.html'), page('firefox/channel', 'firefox/channel.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/features', 'firefox/features.html'), page('firefox/fx', 'firefox/fx.html'), page('firefox/geolocation', 'firefox/geolocation.html', gmap_api_key=settings.GMAP_API_KEY), page('firefox/happy', 'firefox/happy.html'), page('firefox/new', 'firefox/new.html'), page('firefox/organizations/faq', 'firefox/organizations/faq.html'), page('firefox/organizations', 'firefox/organizations/organizations.html'), page('firefox/performance', 'firefox/performance.html'), page('firefox/security', 'firefox/security.html'), page('firefox/speed', 'firefox/speed.html', latest_version=product_details. versions['LATEST_FIREFOX_DEVEL_VERSION']), page('firefox/technology', 'firefox/technology.html'), page('firefox/update', 'firefox/update.html'), page('firefox/unsupported/warning', 'firefox/unsupported-warning.html'), page('firefox/unsupported/EOL', 'firefox/unsupported-EOL.html'),
import os from django.conf.urls.defaults import include, patterns, url from django.http import HttpResponse from funfactory.manage import ROOT from redirects.util import redirect from mozorg.util import page def mock_view(request): return HttpResponse('test') urlpatterns = patterns('', (r'', include('%s.urls' % os.path.basename(ROOT))), # Used by test_util url(r'^mock/view/$', mock_view, name='mock_view'), redirect(r'^gloubi-boulga/$', 'mock_view'), redirect(r'^gloubi-boulga/tmp/$', 'mock_view', permanent=False), # Used by test_helper page('base', 'base-resp.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from redirects.util import redirect from mozorg.util import page import views urlpatterns = patterns( "", url(r"^$", views.grants, name="grants"), url(r"^(?P<slug>[\w-]+).html$", views.grant_info, name="grant_info"), page("reports/gnome-haeger-report", "grants/reports/gnome-haeger-report.html"), page("reports/ushahidi-chile-report", "grants/reports/ushahidi-chile-report.html"), redirect(r".*/$", "grants"), )
import os from django.conf.urls.defaults import include, patterns, url from django.http import HttpResponse from funfactory.manage import ROOT from mozorg.util import page, redirect def mock_view(request): return HttpResponse('test') urlpatterns = patterns( '', (r'', include('%s.urls' % os.path.basename(ROOT))), # Used by test_util url(r'^mock/view/$', mock_view, name='mock_view'), redirect(r'^gloubi-boulga/$', 'mock_view'), redirect(r'^gloubi-boulga/tmp/$', 'mock_view', permanent=False), # Used by test_helper page('base', 'base-resp.html'), )
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from firefox import version_re from mozorg.util import page, redirect import views whatsnew_re = r'^firefox(?:/(%s))?/whatsnew/$' % version_re urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/channel', 'firefox/channel.html'), redirect('^firefox/channel/android/$', 'firefox.channel'), page('firefox/customize', 'firefox/customize.html'), page('firefox/features', 'firefox/features.html'), page('firefox/fx', 'firefox/fx.html', latest_version=product_details.firefox_versions['LATEST_FIREFOX_VERSION']), page('firefox/geolocation', 'firefox/geolocation.html', gmap_api_key=settings.GMAP_API_KEY), page('firefox/happy', 'firefox/happy.html'), page('firefox/memory', 'firefox/memory.html', latest_version=product_details.firefox_versions['LATEST_FIREFOX_VERSION']), url('^firefox/mobile/platforms/$', views.platforms, name='firefox.mobile.platforms'), page('firefox/mobile/features', 'firefox/mobile/features.html'), page('firefox/mobile/faq', 'firefox/mobile/faq.html'), url('^firefox/sms/$', views.sms_send, name='firefox.sms'), page('firefox/sms/sent', 'firefox/mobile/sms-thankyou.html'), page('firefox/new', 'firefox/new.html'), page('firefox/organizations/faq', 'firefox/organizations/faq.html'), page('firefox/organizations', 'firefox/organizations/organizations.html'),
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/channel', 'firefox/channel.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/features', 'firefox/features.html'), page('firefox/fx', 'firefox/fx.html'), page('firefox/geolocation', 'firefox/geolocation.html', gmap_api_key=settings.GMAP_API_KEY), page('firefox/happy', 'firefox/happy.html'), page('firefox/new', 'firefox/new.html'), page('firefox/organizations/faq', 'firefox/organizations/faq.html'), page('firefox/organizations', 'firefox/organizations/organizations.html'), page('firefox/performance', 'firefox/performance.html'), page('firefox/security', 'firefox/security.html'), page('firefox/speed', 'firefox/speed.html', latest_version=product_details.versions['LATEST_FIREFOX_DEVEL_VERSION']), page('firefox/technology', 'firefox/technology.html'), page('firefox/update', 'firefox/update.html'), page('firefox/unsupported/warning', 'firefox/unsupported-warning.html'), page('firefox/unsupported/EOL', 'firefox/unsupported-EOL.html'), url(r'^firefox/unsupported/win$', views.windows_billboards), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( "", page("", "persona/persona.html"), page("about", "persona/about.html"), page("privacy-policy", "persona/privacy-policy.html"), page("terms-of-service", "persona/terms-of-service.html"), page("developer-faq", "persona/developer-faq.html"), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page import views urlpatterns = patterns( '', page('research', 'research/research.html'), page('research/researchers', 'research/researchers.html'), page('research/projects', 'research/projects.html'), page('research/collaborations', 'research/collaborations.html'), page('research/publications', 'research/publications.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('eula', 'eula/index.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns('', page('eula', 'legal/eula.html'), )
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', page('eula', 'eula/index.html'), )
from django.conf.urls.defaults import * from mozorg.util import page urlpatterns = patterns( '', # /apps is temporarily redirected to /apps/partners as per # https://bugzilla.mozilla.org/show_bug.cgi?id=751903 page('', 'marketplace/marketplace.html'), page('partners', 'marketplace/partners.html'))