from django.conf.urls.defaults import patterns, url from django.http import HttpResponse from redirects.util import redirect def mock_view(request): return HttpResponse('test') urlpatterns = patterns('', # 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), redirect(r'^gloubi-boulga/ext/$', 'https://marketplace.mozilla.org'), )
# 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"), )
# 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 patterns, url from django.http import HttpResponse from redirects.util import redirect def mock_view(request): return HttpResponse('test') urlpatterns = patterns( '', # 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), redirect(r'^gloubi-boulga/ext/$', 'https://marketplace.mozilla.org'), redirect(r'^gloubi-boulga/call/$', lambda r: '/asdf' if r.GET.get('test', False) else '/qwer'))
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), )
# 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), )
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 patterns, url from django.http import HttpResponse from redirects.util import redirect def mock_view(request): return HttpResponse('test') urlpatterns = patterns('', # 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), redirect(r'^gloubi-boulga/ext/$', 'https://marketplace.mozilla.org'), redirect(r'^gloubi-boulga/call/$', lambda r: '/asdf' if r.GET.get('test', False) else '/qwer') )
# 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 patterns, url from django.http import HttpResponse from redirects.util import redirect def mock_view(request): return HttpResponse('test') urlpatterns = patterns( '', # 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), redirect(r'^gloubi-boulga/ext/$', 'https://marketplace.mozilla.org'), )
from firefox import version_re from redirects.util import redirect from mozorg.util import page import views latest_re = r'^firefox(?:/(%s))?/%s/$' firstrun_re = latest_re % (version_re, 'firstrun') whatsnew_re = latest_re % (version_re, 'whatsnew') urlpatterns = patterns('', url(r'^firefox/all/$', views.all_downloads, name='firefox.all'), 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'),
from firefox import version_re from redirects.util import redirect from mozorg.util import page import views latest_re = r'^firefox(?:/(%s))?/%s/$' firstrun_re = latest_re % (version_re, 'firstrun') whatsnew_re = latest_re % (version_re, 'whatsnew') urlpatterns = patterns( '', url(r'^firefox/all/$', views.all_downloads, name='firefox.all'), 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/$',