Keith Mitchell
49b39adeb8
Some link flair updates weren't triggering search uploads
2012-06-12 16:11:43 -07:00
Keith Mitchell
1a3e1dd2a6
Make unedited link taglines still translatable
...
In the process, move taglinetext logic to a python file
2012-06-12 16:11:42 -07:00
Keith Mitchell
7bc9df1148
morechildren log notice should notify less often
...
Now only notifies if user exceeds the "1 request per 2 seconds"
rule in a 30 second period (i.e., 16+ hits in 30 seconds)
2012-06-12 16:11:40 -07:00
Keith Mitchell
3b1ef62c85
Try using new search for 'related' tab
2012-06-12 16:11:38 -07:00
Keith Mitchell
a8d55dd77a
Set ratelimits on subreddits
2012-06-12 16:11:36 -07:00
Keith Mitchell
2f56f97713
Migrate Subreddit search to Cloudsearch
...
This expands upon the upload code in cloudsearch.py
cloudsearch.py's classes and functions have been refactored
to support multiple indices based on different objects.
2012-06-12 16:02:49 -07:00
Keith Mitchell
de7c46e4f4
Revert "Update the search box dropdown with new syntax"
...
This reverts commit f2c4abf38b6bfd98c34c32956f7b4559883f8f22.
2012-06-12 15:55:34 -07:00
Keith Mitchell
27c31666f3
Use lucene syntax for searches
...
This uses the l2cs python library to convert
search queries written in "lucene" syntax to
Amazon's CloudSearch syntax
A mouseover blurb on the search results page
shows what the query was parsed as
2012-06-12 15:55:33 -07:00
Neil Williams
2243af7306
Clean out dead last-modified rel code.
2012-06-12 15:48:02 -07:00
Neil Williams
aeb0d3bb7a
Add AMQP message for new accounts.
2012-06-12 15:46:04 -07:00
Neil Williams
cbadfdd0c2
Add AMQP message when usertext edited.
2012-06-12 15:46:04 -07:00
Neil Williams
9e47bb6db7
Dual-write last modified for user page listings.
2012-06-12 15:46:04 -07:00
Neil Williams
fa1a065249
Dual-write last modified timestamp for comments pages.
2012-06-12 15:46:04 -07:00
Max Goodman
66d0d4f627
Move https buttons to S3 for now.
2012-06-12 15:36:31 -07:00
Max Goodman
491e91f019
Switch button static file references to use relative URLs.
2012-06-12 15:36:31 -07:00
Max Goodman
8b4f584f76
Move plugin Makefile extensions to Makefile.plugin include.
2012-06-12 15:36:31 -07:00
Max Goodman
cdd8177622
Speed up Makefile by combining python portions.
2012-06-12 15:36:31 -07:00
Max Goodman
c20ca4e5d5
Remove mangled js output symlinks.
...
Fixes issue with JS files / names falling out of sync.
2012-06-12 15:36:31 -07:00
Max Goodman
ea9d33177c
Clean up plugin static buildstamps when make cleaning static.
2012-06-12 15:36:31 -07:00
Max Goodman
2f47f89566
Move api extension utils to r2.config.extensions.
2012-06-12 15:36:31 -07:00
Max Goodman
473ee2c9bb
Move ConfigValueParser into its own module
...
This enables plugin __init__.py files to import ConfigValue without
app_globals and its dependency on pyx modules.
2012-06-12 15:36:31 -07:00
Max Goodman
b90e55a59f
Remove pyx-dependent imports from r2.config.
2012-06-12 15:36:31 -07:00
Max Goodman
6a861eb17d
Add def catch-all to NullJsonTemplate.
...
This fixes AttributeErrors when trying to render about pages as .json.
2012-06-12 15:36:31 -07:00
Max Goodman
7468c1bbb8
Add "learn more" link to first visit text.
2012-06-12 15:36:31 -07:00
Max Goodman
d5207abafc
Add about pages to the footer.
2012-06-12 15:36:31 -07:00
Max Goodman
37e0cecddc
Whitespace.
2012-06-12 15:36:31 -07:00
Max Goodman
95171cc0e0
Revamp controller lookup to be case insensitive and thread-safe.
2012-06-12 15:36:31 -07:00
Max Goodman
1ebddc5185
Add _md template util for translation of complex text.
...
Added whitespace disabling wrapping around md with wrap=False -- this
should have been in the original commit that added the wrap argument.
2012-06-12 15:36:30 -07:00
Max Goodman
e28541d488
Use a css class to hide the selected dropdown choice.
...
This makes JS dropdown implementations simpler since they have all of
the choices in the DOM.
2012-06-12 15:36:30 -07:00
Max Goodman
222ff247e3
Move comment link label generation to a def for reuse.
2012-06-12 15:36:30 -07:00
Max Goodman
7d219b64ef
Allow a top level id to be specified for the page content div.
2012-06-12 15:36:30 -07:00
Max Goodman
77b98d63ba
Move <link> and etc. tags out of stylesheet() template def.
2012-06-12 15:36:30 -07:00
Max Goodman
4994c93652
Add static domain middleware for testing compiled CSS.
...
In production, static files are located in the root of the static file
host. On a local reddit install, they're only available in /static/.
This middleware allows you to test the production static files layout in
a development environment.
If debug=true and uncompressedJS=false are set in the ini, this middleware
simulates a static files host by prepending /static/ to the URL before
handing the request off to the static files app.
To use this for testing purposes, add an additional domain alias like
redditstatic.local to your hosts file and set static_domain in the ini.
Compiled static files will then load from the app using this middleware.
2012-06-12 15:36:30 -07:00
Max Goodman
dcb85c6d22
Add prefix helper to js Module() class.
2012-06-12 15:36:30 -07:00
Max Goodman
f48eb3bf31
Locate, build, and merge plugin statics in the Makefile.
2012-06-12 15:36:30 -07:00
Max Goodman
4730deeca8
Build plugin JS in js.py.
2012-06-12 15:36:30 -07:00
Max Goodman
fbece1d183
Tweak js module buildstamp names so they sort together.
2012-06-12 15:36:30 -07:00
Max Goodman
619bcdc4a2
Compile static files in build/public/static.
2012-06-12 15:36:30 -07:00
Max Goodman
3c8160a00d
Reorder ConfigValue parser arguments for standalone use.
2012-06-12 15:36:30 -07:00
Max Goodman
47e559495b
Cleanup mangled files completely.
...
Static file mangling now renames files to their mangled form and
symlinks the original name. This cleanup rule deleted only the mangled
names, leaving broken symlinks. The quick'n'dirty solution is to clear
out all of the mangled and unmangled filenames so we don't leave things
in an inconsistent state.
2012-06-12 15:36:30 -07:00
Max Goodman
83d616416d
Add plugin config spec handling.
2012-06-12 15:36:30 -07:00
Max Goodman
ac32513110
Add support for already-minified modules to js.py.
2012-06-12 15:36:30 -07:00
Max Goodman
74e3bccae4
Add on_load method to plugins.
2012-06-12 15:36:30 -07:00
Max Goodman
f0f7989299
Allow plugins to add and extend js modules.
2012-06-12 15:36:30 -07:00
Max Goodman
aaf751ab48
Fix STATIC_ROOT determination for standalone js.py usage.
...
Also, remove import-time dependency on pylons.g.
2012-06-12 15:36:30 -07:00
Max Goodman
93967771ec
Add convenience g.plugins reference for PluginLoader.
2012-06-12 15:36:30 -07:00
Max Goodman
0332d0ca55
Fix import loop and move plugins collection into its own class.
...
Loading plugin controller modules at the bottom of
controllers/__init__.py led to a circular dependency. Registering
controllers via decorator allows controllers/__init__.py to load
completely before plugin controllers are loaded.
2012-06-12 15:36:30 -07:00
Max Goodman
0412e87cb8
Add plugin static file apps to the middleware.
2012-06-12 15:36:29 -07:00
Max Goodman
300564b43e
Add basic plugin support.
2012-06-12 15:36:29 -07:00
shlurbee
c5259c882e
Error handling in promotion summary
...
Logs error instead of failing if campaign from PromotionWeights table doesn't
exist on link.
2012-06-12 15:35:35 -07:00