Commit Graph

3583 Commits

Author SHA1 Message Date
Max Goodman
1c052d1c6f Generalize over18 page wording. 2013-09-27 18:21:25 -07:00
Max Goodman
cff04cde11 Super quick-n-dirty JS module error catching. 2013-09-27 18:21:25 -07:00
Chad Birch
29a2d2dc61 OAuth "read" scope: add search/related/duplicates 2013-09-27 18:21:25 -07:00
Neil Williams
c20db7e11d Use cythonize to manage translation of .pyx -> .c.
This removes the need to run `make pyx` before running setup.py on an
initial install which had stopped working due to various imports needed
for the makefile. Additionally, cythonize is capable of tracking
dependencies the cython files have, such as external headers or other
cython files.

I had to upgrade setuptools to distribute to get v0.6.16 which is the
minimum required to properly use `cythonize` due to a bug in setuptools:

https://bitbucket.org/tarek/distribute/issue/195/
2013-09-27 14:05:38 -07:00
Neil Williams
ad08a19060 setup.py: Ensure we get WebTest <= 1.4.3.
The 2.x series of WebTest requires WebOb >= 1.2 which won't work for us.
2013-09-27 14:05:38 -07:00
Neil Williams
a035d8b9e2 setup.py: Remove obsolete line.
This should've gone away in 8b7b3a307b.
2013-09-27 14:05:38 -07:00
Neil Williams
89a56de538 setup.py: Include a dependency link for PyCAPTCHA 0.4.
PyPI only has versions for Python 2.3 and 2.4. Modern installs that
don't use our PPA to get a debianized copy of this library fail when
trying to resolve the setup.py install_requires dependencies. This fixes
the problem by using a reddit-hosted tarball of the 0.4 source (taken
directly from the source SVN repo).
2013-09-27 14:05:38 -07:00
Brian Simpson
a9f6ecf4a0 VDate takes a timedelta offset rather than datetime. 2013-09-27 15:21:10 -04:00
Brian Simpson
4be8c03273 Typo in POST_edit_campaign. 2013-09-27 15:21:10 -04:00
Brian Simpson
804d037488 Only call campaign.void hook when deleting a campaign.
Not necessary to call when only voiding a transaction.
2013-09-27 15:21:10 -04:00
Brian Simpson
be14b19c55 Use g.min_promote_bid in spotlight box message. 2013-09-27 15:21:10 -04:00
Brian Simpson
e65b059d36 Admin listing for reported promoted links. 2013-09-27 15:21:10 -04:00
Brian Simpson
7e52cf0e09 Accept reports on promoted links. 2013-09-27 15:21:10 -04:00
Brian Simpson
bf0fd5dc24 PromotedLinks can be selfposts. 2013-09-27 15:21:00 -04:00
Brian Simpson
ed18fc5b21 Delete g.countries. 2013-09-27 15:20:41 -04:00
Brian Simpson
48623ffd2c Just let the user type in their country. 2013-09-27 15:20:41 -04:00
Brian Simpson
8cf4eaea0e Open selfserve to all countries. 2013-09-27 15:20:35 -04:00
shlurbee
f8f05b12aa Make recs api return objects instead of strings.
This format will make it possible to add extra info to the recs later
without breaking clients.

(In response to a suggestion from /u/radd_it in /r/multibeta)
2013-09-26 16:23:20 -07:00
Max Goodman
92da469504 Simple multi "share in explore subreddit" button. 2013-09-25 15:56:02 -07:00
Neil Williams
4d17b32801 Fix /stylesheet.css redirect for new-style static stylesheets. 2013-09-25 15:56:02 -07:00
Andre D
6d1a5340b3 submit: Add text to submit field for rules. 2013-09-25 15:13:19 -06:00
Andre D
8260159252 utils.js: Add an LRUCache object. 2013-09-25 15:13:15 -06:00
Brian Simpson
b884ef23cc Future date limit on creating campaigns. 2013-09-25 14:55:09 -04:00
Brian Simpson
cac9702cc4 min_promote_future is an int. 2013-09-25 14:55:09 -04:00
Brian Simpson
186541adc6 PromoteLinkForm: separate start and end date. 2013-09-25 14:55:09 -04:00
Brian Simpson
798acac87e Move error_fields into datepicker. 2013-09-25 14:55:09 -04:00
Brian Simpson
1e524aeb60 VDateRange better separates start and end dates. 2013-09-25 14:55:09 -04:00
Brian Simpson
03cd28a781 VDate: rework to use earliest and latest rather than future and past.
More flexible and easier to understand.
2013-09-25 14:55:09 -04:00
Brian Simpson
2f1746aaa0 POST_edit_campaign respects business days.
This makes the validator consistent with the logic used in
PromoteLinkForm.
2013-09-25 14:55:09 -04:00
Brian Simpson
af171d94ff Remove unnecessary options in VDateRange usage for roadblocks. 2013-09-25 14:55:02 -04:00
Chad Birch
b319b576aa Edit SR: cast wiki rev IDs to strings on conflict 2013-09-24 15:39:41 -06:00
Andre D
e66b786288 multis: Disable multi showcase subreddit by default. 2013-09-24 14:37:45 -07:00
Neil Williams
6badac60b1 install-reddit: Add HTTPS to the default install.
This is primarily to show how to set up reddit with HTTPS as well as to
make it possible to test HTTPS content. The default installation uses
the snakeoil cert and is therefore unauthenticated. A properly signed
certificate must be used for actual security.
2013-09-24 14:37:39 -07:00
Neil Williams
c9013c4438 Make is_local_addr accept localhost.
This is useful for minimal installs where the proxy lives on the same
host as the app.
2013-09-24 14:37:39 -07:00
Max Goodman
d930799df3 Give GA 500ms to send out gold flow tracking pixels. 2013-09-24 14:37:39 -07:00
Neil Williams
e5a0e1b364 thing: Don't commit to memcached until committed to postgres.
This prevents a situation where we make a change to a Thing, write it to
memcached, then fail while committing to Postgres.
2013-09-23 17:40:49 -07:00
Max Goodman
7c9d9742d5 compressed links: Add class non-destructively.
For compressed links mode, augment the render class instead of replacing
it. This fixes an issue where compressed promoted links in self serve
listings didn't get the "promoted" class.
2013-09-23 15:42:36 -07:00
Max Goodman
7586026860 Make multis require over18 if a constituent subreddit does. 2013-09-23 15:42:36 -07:00
Max Goodman
f2614b5e6f Move over-18 intersitial outside of subreddit context.
This way subreddit sidebars aren't visible until you confirm your age.
2013-09-23 15:42:36 -07:00
Neil Williams
3939e7c62d /dev/api: Fix erroneous GET_listing.
This isn't actually a routed endpoint but an artifact of code reuse.
2013-09-23 15:42:36 -07:00
Neil Williams
0463da9c80 /dev/api: Document the "moderation" section. 2013-09-23 15:42:36 -07:00
Kruithne
3f44e02032 Corrected minor typographical errors. 2013-09-23 15:42:36 -07:00
Neil Williams
9d541ea0c9 /dev/api: Make "one of" lists use <code>.
This increases consistency with the rest of the docs which put tokens in
<code> markers (which formats to a monospace font).
2013-09-23 15:42:36 -07:00
Neil Williams
69e908fa62 /dev/api: Move POST_accept_moderator_invite to moderation section.
Since that's where POST_leavemoderator lives, it seems more symmetric.
2013-09-23 15:42:36 -07:00
Neil Williams
2392ad9a86 /dev/api: Fix URL path for GET_moderationlog. 2013-09-23 15:42:36 -07:00
Neil Williams
de4301d24d /dev/api: Document the use of c.site.
For POST requests, this is done (preferably) by the "r" parameter. Other
requests use the path prefix /r/{subreddit}. Since c.site is a global,
it's hard to actually see if it's used by methods, so this uses an
additional manually added parameter to the api_doc decorator to indicate
when c.site is important.
2013-09-23 15:42:36 -07:00
Neil Williams
50c3ab5353 /dev/api: Add a note about modhashes on OAuth. 2013-09-23 15:42:35 -07:00
Neil Williams
24729503f9 Remove cup_info system and reimplement cake days more simply.
This removes a hardcache multi-lookup on every builder'd page and
simplifies the system for cake days.

Cups for the nightly "best *" awards are casualties of this, but they're
little known and probably won't be missed.
2013-09-23 14:18:18 -07:00
Neil Williams
531c1bd546 Clean up missing line deletion not merged out properly. 2013-09-23 13:31:03 -07:00
Brian Simpson
67658a90b6 Increase promoted link inventory. 2013-09-23 13:28:35 -07:00