Brian Simpson
0a623d87c4
StripeController: don't raise exception for recent charges.
2013-11-19 09:55:42 -05:00
Brian Simpson
5943242ad7
analytics: run on comments pages for promote links.
2013-11-19 09:54:44 -05:00
Brian Simpson
794f4175b4
PromoteReport: PromoCampaign end_date is not inclusive.
2013-11-19 09:54:44 -05:00
Brian Simpson
4f63023747
get_total_run: Fix handling for house campaigns.
2013-11-19 09:54:44 -05:00
Brian Simpson
ccf4c9c2c4
Gold: redirect to subscription page if use tries to resubscribe.
2013-11-19 09:54:44 -05:00
Brian Simpson
b9d932d233
Don't allow multiple gold subscriptions.
2013-11-19 09:54:44 -05:00
Brian Simpson
64bffb2903
StripeController: don't cancel subscription if the charge was attempted.
2013-11-19 09:54:44 -05:00
Brian Simpson
dcecc09aa6
ProfileBar: attribute is 'paypal_subscr_id'.
2013-11-19 09:54:44 -05:00
Brian Simpson
42bf5b2ced
StripeController: handle charge.failed with insufficient information.
2013-11-19 09:54:44 -05:00
Brian Simpson
0d0ac728eb
StripeController: handle exception when customer isn't found.
2013-11-19 09:54:44 -05:00
Brian Simpson
210dd1b3fe
Store stripe customer id in Account.gold_subscr_id.
...
We need to do lookups of Account by stripe customer id and
gold_subscr_id has an index. Previously was using a new attribute
stripe_customer_id which didn't have an index and lookups were too
slow.
2013-11-19 09:54:44 -05:00
Brian Simpson
1784c60562
GoldPaymentController: secret code must be unique.
...
create_claimed_gold attempts to create a row in the gold table and
will fail if secret is not unique.
2013-11-19 09:54:44 -05:00
Brian Simpson
d6e2425284
StripeController: fix typo in cancel_subscription.
2013-11-19 09:54:44 -05:00
Brian Simpson
b824f80810
StripeController: handle case where description is None.
2013-11-19 09:54:33 -05:00
Neil Williams
5dc0e7e367
Factor activity fuzzing out of Subreddit.get_accounts_active.
...
This allows liveupdate to reuse the same code.
2013-11-19 14:33:28 -08:00
Neil Williams
0e7758db89
Remove unused util interleave_lists.
2013-11-19 14:33:19 -08:00
Neil Williams
c3c2f200fc
read_secrets: Don't transform INI options on output.
2013-11-19 12:43:28 -08:00
Francesco Frassinelli
f7c2ebb6ef
Added missing netcat dependency
...
netcat is needed (tested on Ubuntu 12.04.3 LTS x86_64)
2013-11-19 12:16:58 -08:00
Neil Williams
3366083663
Create a vault for secret tokens and move some into it.
...
This is intended to reduce the number of critical secrets stored in the
INI file. An initial subset of secrets is moved into the vault to test
things out.
2013-11-19 12:16:58 -08:00
Neil Williams
342ad24409
Factor out INI file parsing into util.
2013-11-19 12:16:58 -08:00
Brian Simpson
484ac3b850
CassandraCache: convert 0 time to None ttl.
2013-11-15 05:00:14 -05:00
Brian Simpson
7a0b633c73
GoldSubscription: convert pennies to a float before doing math on it.
2013-11-15 05:00:14 -05:00
Brian Simpson
2315e77e6d
Raise NotFound if full name type is not thing or relation.
2013-11-15 05:00:14 -05:00
Brian Simpson
d2d325ce7f
CreditGild needs a value for period.
2013-11-15 05:00:14 -05:00
Brian Simpson
929e1db472
Need to use hasattr to check for stripe_customer_id.
2013-11-15 05:00:14 -05:00
Brian Simpson
5c64272668
complete_gold_purchase is a classmethod of GoldPaymentController.
2013-11-15 05:00:14 -05:00
Brian Simpson
1a03651dee
Don't allow multiple gold subscriptions on an account.
2013-11-15 05:00:14 -05:00
Brian Simpson
19d9968455
Don't PM users with gold subscription about expiration.
2013-11-15 05:00:14 -05:00
Brian Simpson
89ffb73378
Renable submit button on all stripe exceptions.
2013-11-15 05:00:14 -05:00
Brian Simpson
a0d39d680e
Stripe gold subscriptions.
2013-11-15 05:00:14 -05:00
Brian Simpson
8db4d6721a
Show a status message immediately when user submits credit card.
2013-11-15 05:00:14 -05:00
Brian Simpson
e20e9eb7a0
ipn: move state to Webhook object.
2013-11-15 05:00:02 -05:00
Brian Simpson
89f6f1ad9c
Delete cython versions of normalized_hot.
2013-11-14 02:09:21 -05:00
Brian Simpson
82a1e0dde7
find_preview_comments/links: use sr rather than c.site.
2013-11-14 02:09:21 -05:00
Brian Simpson
380140f0aa
Use sgm to cache each subreddit's normalized_hot links.
2013-11-14 02:09:14 -05:00
Ricky Ramirez
1f4682ce8a
set_subreddit: Protect against IDNA encoding errors.
2013-11-13 22:30:12 -05:00
Brian Simpson
c827dea143
Add timer around normalized_hot.
2013-11-13 22:30:12 -05:00
Brian Simpson
bdfecf27c5
sgm: use the time parameter.
2013-11-13 22:30:12 -05:00
Brian Simpson
683c88baf8
Count clicks on the "comments" link for a selftext promoted link.
2013-11-13 22:30:03 -05:00
Brian Simpson
5b0f8f3efd
Promotion_Summary: comment explaining campaign accounting.
2013-11-12 16:44:00 -05:00
Brian Simpson
1f5dbcb6f4
Promotion_Summary: subtract refund_amount.
2013-11-12 16:44:00 -05:00
Brian Simpson
27986fc2bf
PromotionWeights: delete get_schedule and bid_history.
2013-11-12 16:44:00 -05:00
Brian Simpson
c5ce5f851d
Delete unused promote.traffic_totals.
2013-11-12 16:44:00 -05:00
Brian Simpson
fe93947f85
Move inventory multiplier to INVENTORY_FACTOR constant.
2013-11-12 16:44:00 -05:00
Brian Simpson
3281b27ae9
Better handling of ignore in inventory methods.
2013-11-12 16:44:00 -05:00
Brian Simpson
55ac9f7aed
PromoteInventory page.
2013-11-12 16:44:00 -05:00
Brian Simpson
f4a03851ea
inventory: split out get_predicted_pageviews.
2013-11-12 16:44:00 -05:00
Brian Simpson
0db61fcc9b
inventory: get_campaigns_by_date method.
2013-11-12 16:44:00 -05:00
Brian Simpson
c48b98554f
PromotionWeights.get_campaigns can filter by sr_name.
2013-11-12 16:44:00 -05:00
Brian Simpson
0dce9b97a7
Delete Promote_Graph.
2013-11-12 16:44:00 -05:00