From a49873a945041333de3682d824af43c1d077af38 Mon Sep 17 00:00:00 2001 From: Wil Clouser Date: Thu, 2 Dec 2010 10:55:34 -0800 Subject: [PATCH] Create purgatory. Buttons are free! Bug 614686 --- apps/amo/__init__.py | 8 ++++++-- migrations/100-purgatory-exists.sql | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 migrations/100-purgatory-exists.sql diff --git a/apps/amo/__init__.py b/apps/amo/__init__.py index d61cc9d0e6..32e42e8c2e 100644 --- a/apps/amo/__init__.py +++ b/apps/amo/__init__.py @@ -84,6 +84,7 @@ STATUS_LISTED = 6 STATUS_BETA = 7 STATUS_LITE = 8 STATUS_LITE_AND_NOMINATED = 9 +STATUS_PURGATORY = 10 # A temporary home; bug 614686 STATUS_CHOICES = { STATUS_NULL: _('Incomplete'), @@ -97,12 +98,15 @@ STATUS_CHOICES = { STATUS_LITE: _('Preliminarily reviewed'), STATUS_LITE_AND_NOMINATED: _('Preliminarily reviewed and awaiting full review'), + STATUS_PURGATORY: + _('Pending a review choice'), } -UNREVIEWED_STATUSES = (STATUS_UNREVIEWED, STATUS_PENDING, STATUS_NOMINATED) +UNREVIEWED_STATUSES = (STATUS_UNREVIEWED, STATUS_PENDING, STATUS_NOMINATED, + STATUS_PURGATORY) VALID_STATUSES = (STATUS_UNREVIEWED, STATUS_PENDING, STATUS_NOMINATED, STATUS_PUBLIC, STATUS_LISTED, STATUS_BETA, STATUS_LITE, - STATUS_LITE_AND_NOMINATED) + STATUS_LITE_AND_NOMINATED, STATUS_PURGATORY) # Types of administrative review queues for an add-on: ADMIN_REVIEW_FULL = 1 diff --git a/migrations/100-purgatory-exists.sql b/migrations/100-purgatory-exists.sql new file mode 100644 index 0000000000..8ba00c43a9 --- /dev/null +++ b/migrations/100-purgatory-exists.sql @@ -0,0 +1,2 @@ +-- Sandboxed add-ons move to purgatory; bug 614686 +UPDATE addons SET status=10 WHERE status=1;