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
shlurbee
1a423aa5ad
Better date validation, do not redirect if form has errors
...
Now, in addition to checking that the date has the correct format (YYYY-MM)
we also check to make sure the date is in the future and the month is in
the range 01 to 12.
This fixes the problem where users were seeing a 500 server error after
entering invalid values for the month when entering their credit card info.
This change also fixes a problem where the form was redirecting even if there
were validation errors, leading the user to believe their authorization was
successful when it wasn't.
2012-06-12 15:35:35 -07:00
Neil Williams
cf8b55274c
Use new LastModified system for Cassandra-based relations.
...
By necessity, this changes the API of tdb_cassandra.Relation._fast_query
to take and return thing objects rather than ID36s.
2012-06-11 11:58:42 -07:00
Neil Williams
8cc3972b00
Add utility to extract linked URLs in Markdown.
2012-06-08 13:23:24 -07:00
Neil Williams
ff7f332993
Touch LastModified on tdb_cassandra.Relation._commit.
2012-06-08 13:23:24 -07:00
Neil Williams
14cb34c49d
LastModified: cut reads for Last Visit over to new schema.
2012-06-08 13:23:24 -07:00
Neil Williams
267d81c6df
LastModified: add get_multi.
2012-06-08 13:23:04 -07:00
Neil Williams
44ebdeb378
Implement domain bans that inform user of block at submit time.
2012-06-05 16:12:24 -07:00
Neil Williams
dbaa48e324
SearchBuilder: don't keep items with deleted authors.
2012-06-04 14:45:34 -07:00
Neil Williams
555c02ad62
Dual-write last visit timestamp.
2012-06-04 14:45:34 -07:00