Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
LOWEST_APPROVED_SDK in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Oct 20, 2011
1 parent 442e0e6 commit 90da3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions apps/jetpack/models.py
Expand Up @@ -2200,9 +2200,7 @@ def get_source_dir(self):
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
Expand Down
2 changes: 2 additions & 0 deletions settings.py
Expand Up @@ -129,6 +129,8 @@
# 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
Expand Down

0 comments on commit 90da3aa

Please sign in to comment.