зеркало из https://github.com/mozilla/FlightDeck.git
Merge branch 'deprecated_sdk_in_settings'
This commit is contained in:
Коммит
920e8a5cb4
|
@ -2200,9 +2200,7 @@ class SDK(BaseModel):
|
|||
return os.path.join(settings.SDK_SOURCE_DIR, self.dir)
|
||||
|
||||
def is_deprecated(self):
|
||||
# TODO: This should be in the settings file as a config var (or in the
|
||||
# db and editable on the web)
|
||||
return self.version < '1.0'
|
||||
return self.version < settings.LOWEST_APPROVED_SDK
|
||||
|
||||
def delete(self, purge=True, *args, **kwargs):
|
||||
"""Override delete method to allow purging
|
||||
|
|
|
@ -129,6 +129,8 @@ PYTHON_EXEC = 'python'
|
|||
# amo defaults
|
||||
XPI_AMO_PREFIX = "ftp://ftp.mozilla.org/pub/mozilla.org/addons/"
|
||||
|
||||
|
||||
LOWEST_APPROVED_SDK = "1.0"
|
||||
TEST_SDK = 'addon-sdk-1.0rc2'
|
||||
TEST_AMO_USERNAME = None
|
||||
TEST_AMO_PASSWORD = None
|
||||
|
|
Загрузка…
Ссылка в новой задаче