Max Goodman
ffca452407
Refactor ListingController so api_doc can get param info.
...
By moving @base_listing to the same function as @api_doc, the validators
@base_listing adds become accessible to the parameter documentation. As
far as I can tell, this is the only place build_listing is called, so I
believe this transformation is safe.
2012-03-26 15:52:12 -07:00
Max Goodman
1890d24ba0
Add api_docs decorator and parameter info. Revamp templates.
...
Remove OAuth2 api documentation until it lands.
2012-03-26 15:52:12 -07:00
Max Goodman
100991117c
Routing changes to move apidocs to /dev/api.
2012-03-26 15:52:12 -07:00
Max Goodman
11605b4873
Move API docs controller to its own module.
2012-03-26 15:50:29 -07:00
Max Goodman
b56ff2a5eb
Allow a top level css_class to be specified for page content divs.
2012-03-26 15:50:29 -07:00
Dave Pifke
3a0a034898
Do API documentation formatting in template instead.
...
Changes the value of the api_methods nested dictionary to be a
dictionary instead of a string. At a minimum, it will contain
an item named __doc__ with the docstring. Any OAuth scopes,
instead of being prepended to the docstring, will be present as
an item named oauth2_scopes. Additional introspected data (such
as required request arguments) can be added later.
2012-03-26 15:50:29 -07:00
Dave Pifke
7f45f3dbf3
Add docstrings for OAuth API endpoints.
2012-03-26 15:50:29 -07:00
Dave Pifke
8a36d0ed77
Fix multi-paragraph docstrings.
2012-03-26 15:50:29 -07:00
Dave Pifke
fb0b650490
Automatically generate API documentation.
...
Needs CSS love and some rewriting of the docstrings that are now
exposed, but otherwise complete.
2012-03-26 15:50:28 -07:00
klocatelli
f1dc6548f8
Look further into a document to find its title.
...
Allows "fetch title" to work on youtube again.
2012-03-26 14:35:12 -07:00
Neil Williams
92cf3610f7
Rearrange CSS preview page -- put preview at top.
2012-03-26 14:35:07 -07:00
Neil Williams
a3fae4650f
Don't use g.default_sr for preview links.
...
On reddit.com it's /r/reddit.com which is pretty
barren these days :)
2012-03-26 14:34:55 -07:00
Neil Williams
b279d29ee2
Use query cache to get preview comments for subreddit CSS.
2012-03-26 14:34:50 -07:00
Neil Williams
0f7e3a69f2
Allow private code to have a say in ratelimiting.
2012-03-26 14:34:44 -07:00
bsimpson63
ca01b8c622
Allow users to remove their email address.
2012-03-20 21:11:46 -07:00
ughblah
9886db8de9
Restrict show_friends to only display [F] in div.content
2012-03-21 13:13:53 -07:00
Neil Williams
ee28a0f321
Convert /comments to new query cache.
2012-03-21 13:13:48 -07:00
Neil Williams
8a7d2a8990
Add debug logging to the new query cache.
2012-03-21 13:13:41 -07:00
Neil Williams
afb4de999e
Allow CachedQueryMutator to be used not as a context manager.
2012-03-21 13:13:35 -07:00
Neil Williams
b284dc80ae
Convert to JSON for query cache storage.
2012-03-21 13:13:28 -07:00
Neil Williams
8fd2169e4f
ColumnFamily.get's column_count defaults to 100. Set it higher.
2012-03-21 13:13:23 -07:00
ughblah
1d84f7e5f5
Removed midcol and rank sizing from replace_things function
2012-03-19 15:52:20 -07:00
ughblah
a516ca9ed1
Removed midcol and rank sizing from insert_things function
2012-03-19 15:51:18 -07:00
Keith Mitchell
8b1911d09b
Make _defaults dicts more diffable
2012-03-19 15:51:13 -07:00
Keith Mitchell
38eef5483e
Add 'from_sr' to Message defaults
2012-03-19 15:51:09 -07:00
Neil Williams
e4ef53b888
Google Analytics: trackPageLoadTime is deprecated.
...
Site speed is sampled on 1% of requests automatically
as part of _trackPageview. This is the maximum allowed
by Google for properties with >1M hits / day.
2012-03-19 10:52:11 -07:00
Neil Williams
9c9d2e45e8
Google Analytics: use short form of _gaq.push.
2012-03-19 10:52:05 -07:00
ughblah
c20cedffa5
Child comments were showing vote of deleted parent
...
Fix issue where child comment would get vote of parent if parent deleted
2012-03-15 14:14:23 -07:00
Stuart Powers
73ed5e3f61
Don't use dropdown on mobile for top/controversial
...
changed navmenu.compact to use a ${flatlist()} for rendering time options
2012-03-15 14:14:18 -07:00
Keith Mitchell
c642d437dc
NameError in cache.py error handling
2012-03-15 14:14:10 -07:00
Kay Zhu
70e4d87e7a
Fix #205 : message compose generates errors in IE
...
Now uses JQuery.inArray() instead of Array.indexOf()
2012-03-15 14:14:04 -07:00
Max Goodman
ffef0ef9d7
Only show moderators in the "banned_by" api attribute.
2012-03-15 14:13:10 -07:00
ughblah
8b08c8ef55
Fix issue with up/down votes from recently viewed links causing score to disappear
2012-03-14 11:56:01 -07:00
Neil Williams
a42505c50a
Keep admin cookie around if actively used.
2012-03-14 11:55:42 -07:00
bsimpson63
8814f6ad09
More functional spam and remove buttons on all items.
2012-03-13 04:24:52 -07:00
bsimpson63
d2c3d23692
Dismiss action on items that are spam.
2012-03-13 04:24:46 -07:00
Neil Williams
33b15bc265
Split the admin cookie out from the session cookie.
2012-03-13 15:46:37 -07:00
Neil Williams
e186b4cd98
Require a password to turn admin mode on.
2012-03-13 15:46:36 -07:00
Keith Mitchell
975c06bb5d
ConfigParser should be case sensitive
2012-03-13 15:14:37 -07:00
Bryce Boe
aa3bb982dc
JSON response for submission API now returns url, id, and name.
2012-03-13 12:49:05 -07:00
Dmitry Kuznetsov
92287f219d
Return more correct HTTP status for Content-Length
...
* 413 Request Entity Too Large for "too big" case
* 411 Length Required for missing header case
* 400 Bad Request for invalid header case
2012-03-13 12:48:54 -07:00
Dmitry Jemerov
b1a53e57d3
admins see count of reports in link/comment JSON
2012-03-13 12:48:46 -07:00
ughblah
2fa39c58dd
Fix form hiding on cancel button click
2012-03-13 11:51:16 -07:00
Keith Mitchell
8d7e6a4a81
Make updateini.py sexy
2012-03-13 10:14:32 -07:00
Keith Mitchell
4070cf7390
Synchronize r2.pot
2012-03-08 11:53:30 -08:00
Max Goodman
2c2ed24b05
Add neutral pretty-button state for "remove-link" button.
2012-03-07 01:19:24 -08:00
Max Goodman
c8cdc91b2e
Clean up pretty-button styles.
2012-03-07 01:19:15 -08:00
Max Goodman
d88e29e89c
Reorder button indexes.
2012-03-07 01:18:28 -08:00
Max Goodman
7c6fff648c
Clean up some big-mod-buttons frontend code.
2012-03-07 01:18:28 -08:00
bsimpson63
f5b829bcb8
Spam and remove options for big_modbuttons.
2012-03-07 01:18:28 -08:00