This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2827 from eviljeff/amo-be-gone
amo be gone (bug 1042820)
- Loading branch information
Showing
189 changed files
with
2,193 additions
and
2,237 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import amo | ||
import mkt | ||
from mkt.webapps.models import AddonExcludedRegion | ||
|
||
|
||
def run(): | ||
"""Unleash payments in USA.""" | ||
(AddonExcludedRegion.objects | ||
.exclude(addon__premium_type=amo.ADDON_FREE) | ||
.exclude(addon__premium_type=mkt.ADDON_FREE) | ||
.filter(region=mkt.regions.US.id).delete()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from django.db import models | ||
|
||
import amo | ||
import mkt | ||
from market.models import Price | ||
|
||
tiers = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from datetime import datetime | ||
|
||
import amo | ||
import mkt | ||
|
||
from aesfield.field import AESField | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
import threading | ||
|
||
from mkt.constants import (categories, comm, platforms, iarc_mappings, | ||
ratingsbodies) | ||
from mkt.constants.applications import * | ||
from mkt.constants.base import * | ||
from mkt.constants.payments import * | ||
from mkt.constants.platforms import * | ||
from mkt.constants.search import * | ||
from mkt.constants.submit import * | ||
|
||
# This is used in multiple other files to access logging, do not remove. | ||
from mkt.site.log import (_LOG, LOG, LOG_BY_ID, LOG_ADMINS, LOG_EDITORS, | ||
LOG_HIDE_DEVELOPER, LOG_KEEP, LOG_REVIEW_QUEUE, | ||
LOG_REVIEW_EMAIL_USER, log) | ||
|
||
_locals = threading.local() | ||
_locals.user = None | ||
|
||
|
||
def get_user(): | ||
return getattr(_locals, 'user', None) | ||
|
||
|
||
def set_user(user): | ||
_locals.user = user | ||
|
||
|
||
# We need to import waffle here to avoid a circular import with jingo which | ||
# loads all INSTALLED_APPS looking for helpers.py files, but some of those apps | ||
# import jingo. | ||
import waffle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.