Commit Graph

905 Commits

Author SHA1 Message Date
Neil Williams
3825d31a2f _force_unicode: Bail out early if text is already unicode. 2011-11-30 16:11:39 -08:00
Neil Williams
2863a7f4bb Stale-memoize pop_reddits. 2011-11-30 16:11:39 -08:00
Neil Williams
2ac898f95e Add stale cache support to @memoize. 2011-11-30 16:11:39 -08:00
Neil Williams
3737592c13 Don't recalculate parents dict for zero-comment links. 2011-11-30 15:55:53 -08:00
Neil Williams
bf880559ad Make CommentSortsCache use CL ONE for reads. 2011-11-30 15:55:53 -08:00
Logan Hanks
2677fd34b8 Don't show flair prefs in subreddits that haven't turned on flair. 2011-11-30 15:51:12 -08:00
Max Goodman
3c4fc1c897 Add kwargs to JSONResponse nop catch-all. 2011-11-30 15:42:50 -08:00
Keith Mitchell
9682cb5aad Change /i18n redirect to /r/i18n 2011-11-30 15:38:32 -08:00
Neil Williams
3adb5591a8 Make git revision lookup fail gracefully. 2011-11-30 10:31:52 -08:00
Neil Williams
4f70066a08 Make paster run use execfile so stack traces are useful. 2011-11-30 10:31:48 -08:00
Neil Williams
a7bcdaa25f Increase self text limit to 40 kilocharacters. 2011-11-30 10:31:43 -08:00
Neil Williams
10d19f3140 Make S3 uploader aware of bizarre .gzip extension. 2011-11-29 16:23:28 -08:00
Neil Williams
60f293e8a8 Use paste's parser for Accept-Encoding check. 2011-11-29 14:56:34 -08:00
Neil Williams
1ca4d56b98 Use .gzip as extension for pre-gzipped files.
Some versions of Safari are stupid about files with
.gz suffix.
2011-11-29 14:56:33 -08:00
Neil Williams
ffb62ff076 Rewrite makefile to better track dependencies. 2011-11-29 14:56:33 -08:00
Neil Williams
7aa603d788 Wrap make_app to allow r2 imports before pyx build. 2011-11-29 14:56:33 -08:00
Neil Williams
07a23a1e55 Move language enumeration to r2.lib.i18n to avoid import madness. 2011-11-29 14:56:33 -08:00
Max Goodman
164fe49447 Count CAPTCHA success/fail rates in stats. 2011-11-23 11:31:45 -08:00
Logan Hanks
6945598117 Pass queue names to @g.stats.amqp_processor. 2011-11-22 14:00:07 -08:00
Logan Hanks
709dd35261 Fix bug counting misses in chains with no permanent caches. 2011-11-22 14:00:02 -08:00
Logan Hanks
97c36b1f15 Mark certain caches as "permanent", and count hits and misses accordingly. 2011-11-22 13:59:20 -08:00
Logan Hanks
bc6ecb5b61 Add a separate sample rate for relatively spammy cache stats. 2011-11-22 13:57:53 -08:00
Logan Hanks
c1347f6d27 Record cache hit/miss stats. 2011-11-22 13:57:48 -08:00
Logan Hanks
7fed17d014 Fix syntax error from trying to add stats collection to the solrsearch queue. 2011-11-22 13:57:41 -08:00
Logan Hanks
43dbcfc4ee Apply timing stats recording to remaining amqp processors. 2011-11-22 13:57:34 -08:00
Logan Hanks
47502c3384 File controller service-time stats under the "web" key. 2011-11-22 13:57:28 -08:00
Logan Hanks
e6274eea7f Add recording of timing stats for amqp processors. 2011-11-22 13:57:23 -08:00
Logan Hanks
a1c371a572 Add python-statsd dependency. 2011-11-22 13:57:05 -08:00
Logan Hanks
ea2ac2120e Add statsd client and sampling of HTTP service times. 2011-11-22 13:55:32 -08:00
Neil Williams
ee9ee8b484 Get rid of unused profanity filter. 2011-11-21 14:32:17 -08:00
Neil Williams
935d0c0b46 Remove obsolete markdown interpreter selection infrastructure. 2011-11-21 14:32:17 -08:00
Neil Williams
8b7b3a307b Remove discount (markdown interpreter). 2011-11-21 14:32:17 -08:00
Neil Williams
560ca09270 Remove markdown.py and replace scattered uses of it.
It was used directly in two places in pages.py, I've
replaced those uses with safemarkdown calls. In the case
of the search fail page, I just removed the javascript
try-again link since it wouldn't be doable through safemarkdown
and that page isn't hit very frequently any more anyway.
2011-11-21 14:32:17 -08:00
Andre D
8eb63214ae Suggest Title decodes html entities 2011-11-21 14:32:17 -08:00
Neil Williams
fea1cf81a2 Add # and ircs:// to valid URL scheme list. 2011-11-21 14:32:17 -08:00
Neil Williams
8865943a4a Add snudown as a markdown backend. 2011-11-17 12:11:51 -08:00
Neil Williams
385fb24282 Fix default stylesheet lookup in editor. 2011-11-16 15:02:50 -08:00
Neil Williams
f5c9fca234 Fix bad selector causing crazy sprite on submitbox.
Didn't show up before because sprite images were arranged differently
before padding.
2011-11-15 16:39:24 -08:00
Neil Williams
17921e1be6 Fix pagename span floating crazily in opera. 2011-11-15 16:39:18 -08:00
Neil Williams
ba3ceadd8a Add slight padding to sprites for zoomy users.
Zoomed in users sometimes get weird junk at the edges
of sprites 'cus everything's so close together.
2011-11-15 16:39:14 -08:00
Max Goodman
4a02f99c61 Fix concatenation of JS modules.
Without a semicolon separator, it's possible that concatenated modules
can be interpreted as valid JS expressions.
2011-11-15 16:39:08 -08:00
Neil Williams
df270a022a optimize_png: Accept second parameter specifying path to optipng. 2011-11-15 15:04:07 -08:00
Neil Williams
ab243a7bcd upload_static: Put the unmangled files on S3 as well. 2011-11-15 15:03:59 -08:00
Neil Williams
5acbd952ee Remove strange space character from link template. 2011-11-14 22:10:02 -08:00
Max Goodman
61fb725bf9 Fix tabmenu in opera. 2011-11-14 22:09:55 -08:00
Neil Williams
cfb4f75795 Update header image to transparent version. 2011-11-14 20:45:39 -08:00
Neil Williams
2b61f9f236 Add static() equivalent on client-side.
and make sure the code uses it.
2011-11-14 20:45:34 -08:00
Neil Williams
4200c37874 Make sure static URLs go through static(). 2011-11-14 20:45:29 -08:00
Max Goodman
67172823ec Fix sprited header image in IE7. 2011-11-14 20:45:22 -08:00
Neil Williams
8350d3f457 Sprite some more of all the things!
Had to convert the three special thumbnail images
to 32-bit PNGs rather than PNG8 with indexed alpha
since PIL does not support the latter. ImageMagick was
awesome for this.
2011-11-14 20:45:17 -08:00