Commit Graph

2416 Commits

Author SHA1 Message Date
bsimpson63
3e7df834d7 use AllMinusBox for goldies, InfoBar warning for non-goldies 2013-01-09 10:06:49 -05:00
bsimpson63
c2726851b5 Use Subreddit.random_reddits to limit AllMinus. 2013-01-09 10:06:49 -05:00
bsimpson63
36415ad4f6 Rearrange random_reddits. 2013-01-09 10:06:49 -05:00
bsimpson63
6b3ee4bb70 Add AllMinusBox sidebox. 2013-01-09 10:06:49 -05:00
bsimpson63
9d2a1af184 AllMinus gold only. 2013-01-09 10:06:49 -05:00
bsimpson63
f29d0ec565 Clean up MultiReddit. 2013-01-09 10:06:49 -05:00
Brian Simpson
5ee83b1636 Subreddit AllMinus that subtracts from /r/all. 2013-01-09 10:06:49 -05:00
bsimpson63
9723a6fc9f Thing: Add in_ operator. 2013-01-09 10:06:49 -05:00
bsimpson63
b9afde3e1a Thing: Add not_ operator. 2013-01-09 10:06:49 -05:00
Max Goodman
c9f972f113 Add missing send_system_message function from private. 2013-01-07 14:56:44 -08:00
Andre D
bb3ceb6a8e wiki: Fix broken json template. 2013-01-07 14:24:44 -08:00
Andre D
8568250a81 wiki: Added a missing infotext for config/description. 2013-01-07 13:54:57 -08:00
Andre D
b1127248e2 wiki: Change a conflicting id. 2013-01-07 13:54:57 -08:00
Andre D
61d9da0f3c wiki: Replace wiki css with less. 2013-01-07 13:54:57 -08:00
Andre D
bd1d7946a2 wiki: Restructure base template. 2013-01-07 13:54:57 -08:00
Ricky Ramirez
ebf7be2ca1 More cat links. 2013-01-07 13:54:57 -08:00
Max Goodman
28edf19123 Replace the last feedback page entry with happy links. 2013-01-07 13:54:57 -08:00
Max Goodman
077843af10 Add icons for wiki moderation log action types. 2013-01-07 13:54:57 -08:00
Keith Mitchell
95c51524fb Remove unused and broken verify_ipn() 2013-01-07 11:52:03 -08:00
Keith Mitchell
76c7e48766 ipn.py: Clean up imports 2013-01-07 11:51:59 -08:00
Keith Mitchell
71952c6005 Encode gold gift messages as UTF-8
fixes reddit/reddit#612
2013-01-07 11:51:55 -08:00
Keith Mitchell
5365887680 Fix failed searches of just parentheses
If the query were just parentheses, like ")(",
l2cs.convert would return an empty string, causing
the subsequent search to fail. This moves the empty
query check later in the code to avoid that issue.

fixes reddit/reddit#618
2013-01-07 11:51:50 -08:00
bsimpson63
4d24eccce4 Promotion date cutoff should be from now if promotion is still live. 2013-01-07 14:25:47 -05:00
Neil Williams
c46cfb9918 stats: Another attempt at fixing the race condition in flushing.
It appears that sometimes multiple threads are flushing the same dict at
the same time. Yikes! This should fix that without double counting.
2013-01-03 14:26:56 -08:00
Keith Mitchell
37a476677f Limit the number of campaigns per promoted link 2013-01-03 14:26:56 -08:00
Keith Mitchell
7a1bc4eef1 PromoteController: Use _byID36 with id36 2013-01-03 14:26:56 -08:00
Keith Mitchell
3c2356c1a5 Changes to example.ini should trigger "make ini" 2013-01-03 14:26:56 -08:00
Neil Williams
4a3a1a9858 reddit_base: Fix incorrect "abort" import.
This was causing the fancy abort(SomeExceptionClass) style aborts to
fail because the pylons abort function didn't support that.
2013-01-03 11:05:53 -08:00
Neil Williams
b7f7faa0ec Fix race condition in stats flushing.
Some threads are writing to the data buffer while we're trying to
iterate over it. This will cause some lost stats, but no more than we're
currently losing to the app dying when it hits the race condition.
2013-01-03 11:05:53 -08:00
Neil Williams
3ada3aa4be ErrorController: Fix Retry-After header not being sent. 2013-01-03 11:05:53 -08:00
Neil Williams
438a0d7357 ErrorController: Clean up imports. 2013-01-03 11:05:53 -08:00
Neil Williams
60d207b7c5 reddit_base: Fix babel.core import position.
Babel is not a stdlib.
2013-01-03 11:05:53 -08:00
Neil Williams
4172c7182b ratelimit_agent: Fix key expiring too soon.
This caused occasional NOT_FOUNDs on the incr when we were unlucky to
have it expire between the add and the incr.
2013-01-03 11:05:53 -08:00
Roger Ostrander
6d6c0c57e9 LiveDict backing for Zookeeper 2013-01-02 17:06:02 -08:00
Neil Williams
f1f7f36b32 tests: Fix up tests for r2.lib.tracking. 2013-01-02 15:27:11 -08:00
Neil Williams
49f41715da setup.cfg: Remove cruft. 2013-01-02 15:27:11 -08:00
Neil Williams
3e73f5769c setup.py: Remove unused and potentially confusing commands. 2013-01-02 15:27:11 -08:00
Neil Williams
54223e8825 Make it possible to run all automated tests via nosetests.
This setup assumes the existence of a `test.ini` file. No current tests
mutate backend state, but that may happen in the future so don't make
your test.ini point at production!
2013-01-02 15:27:11 -08:00
Neil Williams
1c30e9c36d db_manager: postgres:// -> postgresql://
The old scheme is deprecated.
2013-01-02 15:27:11 -08:00
Keith Mitchell
c322a3d8a7 pylintrc: Add inline comment on disable line 2012-12-31 14:08:12 -07:00
Kevin Kress
9b83d48eba Modify authorize/* code to use new @export syntax
* Modify authorize/*.py to add @export and __all__
* Do a style sweep on authorize/* to clear up a few style issues
* add unit test for authorize/* that tests non-DB classes and imports
*
2012-12-31 14:08:07 -07:00
Kevin Kress
288b9be012 add @export syntax for handling __all__
This adds a decorator that checks for __all__ and then exports decorated
functions and classes to it.
2012-12-31 14:08:01 -07:00
Kevin Kress
cd9318d2b0 Add a pylintrc for reddit's needs
Allows running pylint --rcfile pylintrc r2/ to get a list of potential
problems.
2012-12-31 14:07:55 -07:00
Bryce Boe
deb857f686 Show hidden submissions in moderator listings. 2012-12-31 14:07:45 -07:00
Ricky Ramirez
be5fb02d14 template_helpers: Point to /about/team for info on admins. 2012-12-28 11:28:26 -08:00
Neil Williams
bd03654eaf Revert "Apply a bandaid for _dirties being stuck in memcached."
This reverts commit a452422057fdcbeafe26fcbbff527bcc2be37d3d.
This reverts commit bac38fe3a41cd09643b37bad947f3b3a70d5784d.
2012-12-28 11:12:23 -08:00
Neil Williams
dda3ff1539 Make /r/lounge is_contributor not rely on overbloated rel.
The lounge is too popular! update_gold_users is crashing taking too long
to update the SRMember:contributor rel when users' gold expire. This
change makes it so that we don't actually need to maintain the rel to
maintain proper access control for the lounge.
2012-12-27 14:16:49 -08:00
Neil Williams
55a4968209 Apply a bandaid for _dirties being stuck in memcached. 2012-12-27 14:16:49 -08:00
Neil Williams
4fda0f9f4a plugins: Add hook for watching Thing commits. 2012-12-27 14:16:48 -08:00
Neil Williams
76594cdeb6 Refactor and reorganize email canonicalization; add some tests.
The email_attrs thing wasn't actually being used (`if False`) and so
I've removed it in the process.
2012-12-27 14:16:28 -08:00