Commit Graph

3164 Commits

Author SHA1 Message Date
Max Goodman
68d247388f Only show the listing chooser on html pages.
This fixes a listing chooser template error on non-html styles.
2013-07-24 16:53:52 -07:00
Max Goodman
46a4457233 Explicitly set errors in VJSON, with error codes. 2013-07-24 16:53:52 -07:00
Max Goodman
6779827936 Remove default RedditError code.
This conflicts with the wiki's notion that error objects without codes
set aren't fatal.
2013-07-24 16:53:52 -07:00
Max Goodman
269c3c392a Add simple URL-based multireddit title. 2013-07-24 16:53:52 -07:00
Max Goodman
19e6e4e7a1 Fix creating multis for users with capitals in their name. 2013-07-24 16:53:52 -07:00
Max Goodman
c7ffe74d0d Clean up Subreddit _defaults whitespace.
Doing this in a separate commit for clarity.
2013-07-24 16:53:52 -07:00
Max Goodman
edbf16e920 Add _defaults dict to BaseSite and fix the MRO.
Making default values actual properties overrides the _defaults
__getattr__ logic in Things. Also, I needed to fix the ordering of the
parent classes so the Thing __getattr__ overrided the one in BaseSite.
2013-07-24 16:53:52 -07:00
Max Goodman
fedb7edd10 Add multi title property. 2013-07-24 16:53:52 -07:00
Max Goodman
1c91e4db7f Remove unused (?) default property. 2013-07-24 16:53:52 -07:00
Max Goodman
b60e681514 Show working indicator when refreshing listings. 2013-07-24 16:53:52 -07:00
Max Goodman
c639218105 Switch back to only returning listing in bare request.
Including the extra behavior in content() means depending on the listing
type we get different DOM structure, which makes replacing the content
on the client side difficult. We probably don't want to change ad out
with every multi update anyway.
2013-07-24 16:53:52 -07:00
bsimpson63
31a1e14350 Update docstring for view_of. 2013-07-24 16:53:52 -07:00
bsimpson63
7934eca333 Use iteritems in add_srs. 2013-07-24 16:53:52 -07:00
bsimpson63
637e4b001c Specify cassandra consistency levels for LabeledMulti. 2013-07-24 16:53:52 -07:00
Max Goodman
c0ae5a45e7 Add column validator for LabeledMulti date field. 2013-07-24 16:53:52 -07:00
Max Goodman
877bed49d6 Add missing emulateJSON setting. 2013-07-24 16:53:52 -07:00
Max Goodman
dae0da7f2f Move front page "saved" tab to listing chooser. 2013-07-24 16:53:51 -07:00
Max Goodman
44632a67fd Add a list of multis created to the user page sidebar. 2013-07-24 16:53:51 -07:00
Max Goodman
c28e756c42 Combine multi traffic into one name until stats system is smarter. 2013-07-24 16:53:51 -07:00
Max Goodman
6bc10248f5 Redirect /u/foo/m/bar to /user/foo/m/bar. 2013-07-24 16:53:51 -07:00
Max Goodman
b4b8df9d40 Multi frontend: listings, sidebar, and editing UI. 2013-07-24 16:53:51 -07:00
Max Goodman
c564d16159 Increase sprite distance to ease padding sprited elements. 2013-07-24 16:53:51 -07:00
Max Goodman
7cdee62f8e Move multi / all info boxes above submit button. 2013-07-24 16:53:51 -07:00
Max Goodman
3f5b26bb48 Check if url starts with subreddit path before adding.
Fixes add_sr behavior for multi URLs.
2013-07-24 16:53:51 -07:00
Max Goodman
386e6dda39 Add case to menu selected matching logic for multis.
Since the multi name doesn't get stripped from the internal URL path
like for subreddits, we need to check for them slightly differently.
2013-07-24 16:53:51 -07:00
Max Goodman
9613d65d6e Move subscribe button into own template / add sr name data attr. 2013-07-24 16:53:51 -07:00
Max Goodman
a531bc76df Use $.Deferred to control working indicator display. 2013-07-24 16:53:51 -07:00
Max Goodman
c6483246d7 Add "bare" request param for reloading listing content in-page. 2013-07-24 16:53:51 -07:00
Max Goodman
38802df7ff Move space compress defaulting into responsive() helper.
This allows calls to responsive() without "space_compress" set to
default to the global setting.
2013-07-24 16:53:51 -07:00
Max Goodman
2c4553fd24 Add utility for sending wrapped things in js_preload. 2013-07-24 16:53:51 -07:00
Max Goodman
90dc3e877b Make space for admin bar by adding body top margin.
This may hopefully help interactions between absolutely positioned
subreddit elements and the admin bar.
2013-07-24 16:53:51 -07:00
Max Goodman
fc6724530b RESTful API for multis. 2013-07-24 16:53:51 -07:00
Max Goodman
1d5b3d7451 api docs: Filter overridden base parameters. 2013-07-24 16:53:51 -07:00
Max Goodman
cbef2f3dae Add support for PUT and DELETE requests. 2013-07-24 16:53:51 -07:00
Brian Simpson
b2b15a79b5 Subreddit by name validator. 2013-07-24 16:53:51 -07:00
Max Goodman
30c9134771 Tweak flair preference lookup to not break on multi ids.
This method gets called in the cache key for wrapped things. The integer
restriction breaks on multis, which have string ids.
2013-07-24 16:53:50 -07:00
Brian Simpson
32c9b5ed84 Add model for labeled multireddits. 2013-07-24 16:53:50 -07:00
bsimpson63
9b150c5dbb Add destroy_() method for tdb_cassadra.Thing for deleting rows. 2013-07-24 16:53:50 -07:00
bsimpson63
51ff5e6049 Generalize view_of decorator for use on tdb_cassandra.Thing objects. 2013-07-24 16:53:50 -07:00
Max Goodman
4bdcf06ab2 Refactor FakeSubreddit to not inherit from db-backed Subreddit. 2013-07-24 16:53:50 -07:00
Max Goodman
59d8c68e94 Add Cassandra thing _date property for use by JSON templates.
Cassandra things name their date property "date", while tdb_sql things
name it "_date". This property alias allows the existing JSON template
code to access the timestamp without caring about what type of thing it
is.
2013-07-24 16:53:50 -07:00
Max Goodman
0c42fa96c6 Do not override reddit_http_error explanation if provided. 2013-07-24 16:53:50 -07:00
Max Goodman
c3e804ff13 Default RedditError status code to 400.
When threading validator errors through to reddit_http_error, it is
useful to be able to assume that status code is a valid number in all
cases.
2013-07-24 16:53:50 -07:00
Max Goodman
6f26ba0ef5 Accept modhashes sent in X-Modhash header. 2013-07-24 16:53:50 -07:00
Max Goodman
66c158bd56 Handle beta cookies in the cookie classifier. 2013-07-24 16:53:50 -07:00
Max Goodman
e1de4097f3 Use full destination URLs in intermediate redirects. 2013-07-24 16:53:50 -07:00
Max Goodman
571f8f70f6 Use canonical URL for logout POST. 2013-07-24 16:53:50 -07:00
Neil Williams
a3c8867525 i18n: Extract messages from all installed plugins.
This makes "make i18n" extract messages for translation from all
installed plugins as well.
2013-07-24 13:54:41 -07:00
Neil Williams
928e51e886 i18n: Work around bug in babel's "extract_messages". 2013-07-24 13:54:41 -07:00
Neil Williams
e408d2903d setup.py: Remove unnecessary babel commands.
These are defined by default when babel is around. No need to
specify them manually.
2013-07-24 13:54:41 -07:00