Neil Williams
bd522e5af7
Comment Votes: update CommentSortsCache *after* updating comment scores.
...
This was causing CSC to have scores based on stale (off-by-one) vote
data.
One thousand thanks to @raldi for noticing this.
2013-02-22 12:34:20 -08:00
Max Goodman
4b08a17d09
Rename "error" param to be a bit more pedantic.
...
As we more further towards errors being actual objects.
2013-02-21 14:02:37 -08:00
Max Goodman
5db4b4d755
Cleanup.
2013-02-21 14:02:37 -08:00
Max Goodman
ba78412480
Generalize wiki validator / error system.
...
* Generalize validator error class and make an Exception subclass.
* Provide per-controller handling of fatal validator errors.
* Instantiate correct http exception classes using status_map.
2013-02-21 14:02:37 -08:00
Max Goodman
dbcd5f6079
Remove unused GoldRequiredException.
2013-02-21 14:02:37 -08:00
Ricky Ramirez
927426ee1b
strings: Update gold info page link.
2013-02-21 14:02:37 -08:00
Logan Hanks
6e2231787e
Fix bug checking wiki permission on UnloggedUser.
2013-02-21 13:26:09 -08:00
Logan Hanks
cdefa89421
Add moderator permission for wiki.
2013-02-21 13:25:59 -08:00
Logan Hanks
81acc136f4
Fix memoization of X_ids and reverse_X_ids.
2013-02-20 18:11:15 -08:00
Max Goodman
e22d31be91
Use input type="email" in the registration form.
2013-02-20 15:20:49 -08:00
Max Goodman
f0b4d8fbdb
Clarify the email field in the registration form.
2013-02-20 15:20:48 -08:00
Max Goodman
b309532b4f
.compact: Layer subreddit name above logo.
...
Thanks 7oby! http://redd.it/18ccy5
2013-02-20 15:20:48 -08:00
Logan Hanks
125abe9e8f
Include all mod tool buttons for admins.
2013-02-20 14:30:50 -08:00
Logan Hanks
a3c7dd0b10
Check for posts permission in spam/reported/modqueue/unmoderated queries on multireddits and /r/mod.
2013-02-20 13:12:34 -08:00
Logan Hanks
b0738c7902
Explicitly import permission set definitions in validator.py.
2013-02-20 13:12:34 -08:00
Logan Hanks
4d252de134
Make sure is_moderator always returns permissions support.
2013-02-20 13:12:34 -08:00
Logan Hanks
de76bb6380
Add get method to StringHandler.
2013-02-20 13:12:34 -08:00
Logan Hanks
56e310105b
Add moderator permission for mail.
2013-02-20 13:12:34 -08:00
Logan Hanks
9a23deb878
Move permissions (and related strings) to lib.
2013-02-20 13:12:34 -08:00
Logan Hanks
890916859f
Add moderator permission for managing subreddit config.
2013-02-20 13:12:34 -08:00
Logan Hanks
2619be4244
Add moderator permission for access (bans, contributors, etc.).
2013-02-20 13:12:34 -08:00
Logan Hanks
5106508ed6
Add permissions editing to the edit moderators page.
2013-02-20 13:12:34 -08:00
Logan Hanks
4aed1baea9
Add moderator permission for posts (approve/remove/distinguish/nsfw).
2013-02-20 13:12:34 -08:00
Logan Hanks
dc5cc92962
Add moderator permission for flair.
2013-02-20 13:12:34 -08:00
Logan Hanks
5315281f82
Add permissions to moderator relations and VSrModerator.
2013-02-20 13:12:34 -08:00
Logan Hanks
07db3ff6d8
Add each_<userrel>() method.
2013-02-20 13:12:33 -08:00
Logan Hanks
13b64364d9
Refactor userrel.py.
2013-02-20 13:12:33 -08:00
bsimpson63
60006856cb
In validate_blob do _force_unicode on giftmessage.
2013-02-19 14:49:56 -05:00
bsimpson63
d751319715
Correctly parse usernames with hyphens from stripe charges.
2013-02-19 14:49:56 -05:00
bsimpson63
39a136fa24
PromotedLinkTraffic returns entire run when getting csv.
2013-02-19 14:49:56 -05:00
bsimpson63
caf1316d3c
Add next/prev buttons to promoted link traffic listings.
2013-02-19 14:49:56 -05:00
bsimpson63
60f907070d
VDate can take alternate date formats.
2013-02-19 14:49:56 -05:00
Ricky Ramirez
9391310c6e
Point old wiki links to their new URLs.
2013-02-19 14:49:56 -05:00
Ricky Ramirez
a5b09b4bf5
Point old wiki gold links to /gold/about
2013-02-19 14:49:56 -05:00
Ricky Ramirez
4aec9618e6
write_live_config: Fail correctly if there is an error.
2013-02-19 14:49:56 -05:00
Ricky Ramirez
a9b5d2a7b0
write_live_config: Exit with non-zero code on user abort.
2013-02-19 14:49:50 -05:00
bsimpson63
e301b34cda
Coinbase payments for reddit gold.
2013-02-15 14:12:16 -05:00
bsimpson63
3d511075a0
Stripe payments for reddit gold.
2013-02-15 14:12:15 -05:00
bsimpson63
ef99714d49
GoldPaymentController to handle IPN stuff
2013-02-15 14:10:33 -05:00
bsimpson63
c78c3dbdff
Make gold.html handle negative gold_creddits.
2013-02-15 14:09:54 -05:00
bsimpson63
52aaaaeece
Helper functions for gold IPN.
2013-02-15 14:09:53 -05:00
bsimpson63
7f5eb6b202
Only show PayPal button if there's a button to show.
2013-02-15 13:53:49 -05:00
bsimpson63
3fcf8c9c03
Move payment buttons to functions.
2013-02-15 13:53:38 -05:00
Chad Birch
48aee3dc06
Remove icon from disabled submit sidebox
2013-02-15 10:49:54 -08:00
Chad Birch
6d7d07cd11
Second submit button for text posts, remove subtitles
...
Also disable submit button in restricted/archived subs when logged out
2013-02-15 10:49:45 -08:00
Neil Williams
77efa9ab43
wrap-job: Don't cd into r2/r2/ when we just want to be in r2/.
...
This was causing Pygments to fail to import correctly in jobs since
r2/r2/ has a commands.py which was getting relatively imported by
accident. Yuck.
2013-02-14 14:18:47 -08:00
Neil Williams
775c795894
Use WebError Reporter objects for exception logging.
...
This brings log_q reporting and logging-based reporting (syslog)
together into one place as WebOb error reporters.
2013-02-14 14:18:47 -08:00
Neil Williams
3657de5d10
Clean up and document log.py.
...
This also removes module-level use of "g" or imports of r2.lib.amqp so
that importing this module is possible before the app is fully set up.
2013-02-14 14:17:26 -08:00
Max Goodman
09c572c964
Make ignore reports button a 2-state toggle button.
2013-02-14 13:55:05 -08:00
Jason Harvey
02bd09ae53
Adjust how and when builder shows reports and big_modbuttons.
...
Always show big_modbuttons on spamlistings (report listing, mod listing, etc).
Only display reports if ignore_reports is False or the user is admin.
2013-02-14 13:55:01 -08:00