diff --git a/apps/addons/fixtures/addons/update.json b/apps/addons/fixtures/addons/update.json index d19e51634a..622430ef51 100644 --- a/apps/addons/fixtures/addons/update.json +++ b/apps/addons/fixtures/addons/update.json @@ -610,6 +610,7 @@ "model": "applications.application", "fields": { "guid": "{718e30fb-e89b-41dd-9da7-e25a45638b28}", + "supported": "0", "modified": "2008-06-17 08:29:01", "created": "2007-03-05 13:09:26" } diff --git a/apps/addons/templates/addons/popups.html b/apps/addons/templates/addons/popups.html index 7de410252e..7146389764 100644 --- a/apps/addons/templates/addons/popups.html +++ b/apps/addons/templates/addons/popups.html @@ -5,7 +5,6 @@ amo.FIREFOX: 'http://getfirefox.com/?src=amo', amo.THUNDERBIRD: 'http://www.mozillamessaging.com/', amo.MOBILE: 'http://www.mozilla.com/m/', - amo.SUNBIRD: 'http://www.mozilla.org/projects/calendar/sunbird/', amo.SEAMONKEY: 'http://www.seamonkey-project.org/', }[APP] %} diff --git a/apps/addons/tests/test_models.py b/apps/addons/tests/test_models.py index 65288078d2..1d05cbbce3 100644 --- a/apps/addons/tests/test_models.py +++ b/apps/addons/tests/test_models.py @@ -179,7 +179,7 @@ class TestAddonManager(amo.tests.TestCase): eq_(f.count(), 3) eq_(sorted(x.id for x in f), [2464, 7661, 15679]) - f = Addon.objects.featured(amo.SUNBIRD) + f = Addon.objects.featured(amo.THUNDERBIRD) assert not f.exists() @@ -1278,7 +1278,7 @@ class TestAddonModelsFeatured(amo.tests.TestCase): eq_(sorted(f), [1001, 1003, 2464, 3481, 7661, 15679]) f = Addon.featured_random(amo.FIREFOX, 'fr') eq_(sorted(f), [1001, 1003, 2464, 7661, 15679]) - f = Addon.featured_random(amo.SUNBIRD, 'en-US') + f = Addon.featured_random(amo.THUNDERBIRD, 'en-US') eq_(f, []) def test_featured_random(self): diff --git a/apps/addons/tests/test_views.py b/apps/addons/tests/test_views.py index ada0d0f841..323731e88b 100644 --- a/apps/addons/tests/test_views.py +++ b/apps/addons/tests/test_views.py @@ -1045,13 +1045,13 @@ class TestDetailPage(amo.tests.TestCase): If current add-on's type is unsupported by app, redirect to an app that supports it. """ - # Sunbird can't do Personas => redirect + # Thunderbird can't do search engines prefixer = amo.urlresolvers.get_url_prefix() - prefixer.app = amo.SUNBIRD.short - response = self.client.get(reverse('addons.detail', args=['a15663']), + prefixer.app = amo.THUNDERBIRD.short + response = self.client.get(reverse('addons.detail', args=['a4594']), follow=False) eq_(response.status_code, 301) - eq_(response['Location'].find(amo.SUNBIRD.short), -1) + eq_(response['Location'].find(amo.THUNDERBIRD.short), -1) assert (response['Location'].find(amo.FIREFOX.short) >= 0) def test_compatible_app_redirect(self): diff --git a/apps/api/tests/test_views.py b/apps/api/tests/test_views.py index 6f9f2d870c..c97af62cca 100644 --- a/apps/api/tests/test_views.py +++ b/apps/api/tests/test_views.py @@ -790,7 +790,6 @@ class SearchTest(ESTestCase): """ # The following URLs should yield zero results. zeros = ( - '/en-US/sunbird/api/1.2/search/yslow', 'yslow category:alerts', 'jsonview version:1.0', 'firebug type:dictionary', diff --git a/apps/applications/fixtures/applications/all_apps.json b/apps/applications/fixtures/applications/all_apps.json index fee509621c..78cbacb8d0 100644 --- a/apps/applications/fixtures/applications/all_apps.json +++ b/apps/applications/fixtures/applications/all_apps.json @@ -31,6 +31,7 @@ "model": "applications.application", "fields": { "guid": "{718e30fb-e89b-41dd-9da7-e25a45638b28}", + "supported": "0", "modified": "2008-06-17 08:29:01", "created": "2007-03-05 13:09:26" } diff --git a/apps/applications/management/commands/dump_apps.py b/apps/applications/management/commands/dump_apps.py index 9ff3cb251d..fb43f13ff4 100644 --- a/apps/applications/management/commands/dump_apps.py +++ b/apps/applications/management/commands/dump_apps.py @@ -19,7 +19,8 @@ class Command(BaseCommand): def handle(self, *args, **kw): apps = {} - for id, guid in Application.objects.values_list('id', 'guid'): + for id, guid in (Application.objects.values_list('id', 'guid') + .exclude(supported=0)): apps[id] = dict(guid=guid, versions=[], name=amo.APPS_ALL[id].short) versions = (AppVersion.objects.values_list('application', 'version') diff --git a/apps/applications/models.py b/apps/applications/models.py index 3752ddce9c..bd9fe66a8a 100644 --- a/apps/applications/models.py +++ b/apps/applications/models.py @@ -7,6 +7,7 @@ from versions import compare class Application(amo.models.ModelBase): guid = models.CharField(max_length=255, default='') + supported = models.BooleanField(default=1) # We never reference these translated fields, so stop loading them. # name = TranslatedField() # shortname = TranslatedField() diff --git a/apps/constants/applications.py b/apps/constants/applications.py index bac2f9be47..b8317d4049 100644 --- a/apps/constants/applications.py +++ b/apps/constants/applications.py @@ -59,6 +59,8 @@ class SEAMONKEY(App): class SUNBIRD(App): + """This application is retired and should not be used on the site. It + remains as there are still some sunbird add-ons in the db.""" id = 52 short = 'sunbird' shortername = 'sb' @@ -128,9 +130,8 @@ class MOZILLA(App): platforms = 'desktop' # DESKTOP_PLATFORMS (set in constants.platforms) # UAs will attempt to match in this order -APP_DETECT = (ANDROID, MOBILE, THUNDERBIRD, SEAMONKEY, SUNBIRD, FIREFOX) -APP_USAGE = _apps = (FIREFOX, THUNDERBIRD, ANDROID, - MOBILE, SEAMONKEY, SUNBIRD) +APP_DETECT = (ANDROID, MOBILE, THUNDERBIRD, SEAMONKEY, FIREFOX) +APP_USAGE = _apps = (FIREFOX, THUNDERBIRD, ANDROID, MOBILE, SEAMONKEY) APPS = dict((app.short, app) for app in _apps) APP_IDS = dict((app.id, app) for app in _apps) APP_GUIDS = dict((app.guid, app) for app in _apps) diff --git a/apps/pages/templates/pages/about.lhtml b/apps/pages/templates/pages/about.lhtml index 9be7feb265..419d0310d6 100644 --- a/apps/pages/templates/pages/about.lhtml +++ b/apps/pages/templates/pages/about.lhtml @@ -11,8 +11,8 @@
{% trans %}addons.mozilla.org, commonly known as "AMO", is Mozilla's official -site for add-ons to Mozilla software, such as Firefox, Thunderbird, SeaMonkey, -and Sunbird. Add-ons let you add new features and change the way your browser +site for add-ons to Mozilla software, such as Firefox, Thunderbird, and SeaMonkey. +Add-ons let you add new features and change the way your browser or application works. Take a look around and explore the thousands of ways to customize the way you do things online.{% endtrans %}
diff --git a/apps/pages/templates/pages/sunbird.html b/apps/pages/templates/pages/sunbird.html new file mode 100644 index 0000000000..537e6c0083 --- /dev/null +++ b/apps/pages/templates/pages/sunbird.html @@ -0,0 +1,48 @@ +{% extends "impala/base_shared.html" %} + +{% block title %} + {{ page_title(_('Sunbird')) }} +{% endblock %} + +{% block extrahead %} + +{% endblock %} + +{% block content %} ++ {% trans %} + Development on the Sunbird project has halted and its final release was + on March 30, 2010. We've been proud to host Sunbird add-ons on this site + but as the project is no longer maintained we have disabled our support + for the add-ons. + {% endtrans %} +
+ ++ {% trans tb_url="https://www.mozilla.org/en-US/thunderbird/", + lightning_url="https://addons.mozilla.org/thunderbird/2313/" %} + We recommend upgrading to Thunderbird and Lightning. + {% endtrans %} +
+ + +