Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Take out configure_payments hack
Browse files Browse the repository at this point in the history
With the upgrade to the balanced library in #2036 we no longer need this
workaround for balanced/balanced-python#5.
Removing at this point because I'm ripping out all of our direct
os.environ usage and this applies.
  • Loading branch information
chadwhitacre committed Apr 3, 2014
1 parent 381a48d commit bcf777b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions configure-aspen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import gittip
import gittip.wireup
from gittip import canonize, configure_payments
from gittip import canonize
from gittip.security import authentication, csrf, x_frame_options
from gittip.utils import cache_static, timer

Expand Down Expand Up @@ -145,7 +145,6 @@ def scab_body_onto_response(response):
, algorithm['raise_200_for_OPTIONS']

, canonize
, configure_payments
, authentication.inbound
, csrf.inbound
, add_stuff_to_context
Expand Down
7 changes: 0 additions & 7 deletions gittip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""
import datetime
import locale
import os
from decimal import Decimal

import aspen
Expand Down Expand Up @@ -93,12 +92,6 @@ def canonize(request):
request.redirect(url)


def configure_payments(request):
# Work-around for https://github.com/balanced/balanced-python/issues/5
import balanced
balanced.configure(os.environ['BALANCED_API_SECRET'])


def outbound(request, response, website):
version = website.version

Expand Down

0 comments on commit bcf777b

Please sign in to comment.