2147 Commits

Author SHA1 Message Date
Will Kahn-Greene
4d1761d22f Tweak theming docs
I did a pass on language and more reST formatting. This is a little
cleaner, though there are a couple of parts that feel like they could
use some work.
2012-07-26 21:33:25 -04:00
Christopher Allan Webber
a04c07376d Merge remote-tracking branch 'refs/remotes/gandaro/369-thread-gettext' 2012-07-26 11:09:52 -05:00
Christopher Allan Webber
5e9e2deee6 Merge remote-tracking branch 'refs/remotes/willkg/plugins-infrastructure-rewrite' 2012-07-26 10:46:52 -05:00
Christopher Allan Webber
33e902e3b3 Removing PIL from the setup.py develop process.
People should use package managers to install PIL.  It's too much of a
mess to install via python packaging.
2012-07-26 10:46:21 -05:00
Jef van Schendel
c7fd56c9e0 Include Airy theme by default 2012-07-23 21:37:56 +02:00
Jef van Schendel
36f8e350d4 Add zoom-in cursor css; small indentation fix 2012-07-21 00:27:49 +02:00
Jef van Schendel
e175251899 Edit comment-notification text 2012-07-20 22:03:43 +02:00
Jef van Schendel
5381b4b7a0 Insignificant edits to logo SVG 2012-07-20 21:06:41 +02:00
Jef van Schendel
47ab857fa3 Increase Description and Bio textarea height to 100px 2012-07-20 00:45:49 +02:00
Jakob Kramer
c80982c7a0 make mg_globals.translations thread-safe
I added mg_globals.thread_scope (an instance of threading.local)
and made `translations' an attribute of it.
2012-07-18 19:25:53 +02:00
Will Kahn-Greene
05d8f314c6 [Issue 466] Implement e-z plugin disabling 2012-07-17 21:14:45 -04:00
Will Kahn-Greene
05e007c1db Rework plugin infrastructure to nix side-effects
This reworks the plugin infrastructure so as to remove module-loading
side-effects which were making things a pain in the ass to test.

With the new system, there's no auto-registering meta class. Instead
plugins do whatever they want and then specify a hooks dict that maps
hook names to callables for the things they're tying into. The most
common one (and the only one we've implemented so far) is "setup".

This also simplifies the sampleplugin a little by moving the code
to __init__.py.
2012-07-17 21:02:12 -04:00
Will Kahn-Greene
8464bcc3e8 Fix themeing docs
This fixes a bunch of formatting issues in the themeing docs and makes
them easier to read.
2012-07-16 17:06:57 -04:00
Will Kahn-Greene
54b42ee564 Overhaul flatpages
* move contents of main.py to __init__.py
* update documentation in README
* change the key/value configuration specification
* added a recipe for passing values from the url to the template
* removed some unused code
2012-07-16 09:26:28 -04:00
Will Kahn-Greene
8815541c26 Fix template 2012-07-16 09:26:28 -04:00
Will Kahn-Greene
4bd65f69c7 Finish flatpagesplugin; add plugin docs 2012-07-16 09:26:28 -04:00
Will Kahn-Greene
8545dd50f0 Flatpages first pass
This fixes the template loader so that it can load plugin templates.

This adds code for registering template paths so that plugins can add
their own templates.

This adds the base code for the flatpagesfile plugin. It doesn't serve
pages, yet, but it's pretty close.
2012-07-16 09:26:28 -04:00
Christopher Allan Webber
62157a898f Added a section describing how to do theming via simple CSS stuff! 2012-07-14 22:58:42 -05:00
Christopher Allan Webber
667d1fc893 Moving extrahead.html -> extra_head.html because it's easier to read 2012-07-14 22:52:22 -05:00
Christopher Allan Webber
27c9bb8a58 Small fix to themedata_for_theme_dir utility about sections
If we can't find the theme section, we should use a dictionary instead
of None in this section of code.
2012-07-14 22:44:06 -05:00
Christopher Allan Webber
0416b86621 Allow for an "extrahead" template where themers can include extra css, js, etc 2012-07-14 22:43:08 -05:00
Christopher Allan Webber
faa74bf9f5 Store licensing info as well 2012-07-14 20:23:21 -05:00
Christopher Allan Webber
04b24107fb Mostly good theming documentation! 2012-07-14 20:22:25 -05:00
Christopher Allan Webber
e6aaaa9619 Fleshing out theming documentation; wrote out "structure of things" section 2012-07-14 15:54:14 -05:00
Christopher Allan Webber
777908759c Setup the scaffolding for theme installing, but it doesn't work yet 2012-07-14 13:32:11 -05:00
Christopher Allan Webber
3da44aeba1 Break the asset linking code off into a reusable function
In the future, the install command should be able to use that as well.
2012-07-14 13:23:12 -05:00
Christopher Allan Webber
35a24fc263 Moving the "dependency injection printer tools" over to tools/common.py 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
8a22617ffe asset linking command now works 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
111a97524a Start of the ./bin/gmg theme assetlink command.
Mostly works but doesn't handle all the places it could break.
2012-07-14 12:55:14 -05:00
Christopher Allan Webber
aed7474e88 Make the theme_linked_assets_dir config option point to the right place by default
Should be in user_dev...
2012-07-14 12:55:14 -05:00
Christopher Allan Webber
975be468cf Making the register_themes() tool also return the current theme
This will reduce the amount of work reproducing this behavior when
pulling together the theme registry elsewhere.
2012-07-14 12:55:14 -05:00
Christopher Allan Webber
71eb457748 Serve and setup the mediagoblin "linked theme" assets directory 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
9a422c1fd0 Add the theme domain to the application's staticdirector 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
5377114c4d Update staticdirect stuff so it can handle "domains" of staticdirection 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
00eda826cb Kill MultiRemoteStaticDirect... nobody was really using it anyway
Since we're adding the new "domain" staticdirect system we should
clean this up.
2012-07-14 12:55:13 -05:00
Christopher Allan Webber
e8d4e58214 Moving staticdirect to tools/ 2012-07-14 12:55:13 -05:00
Christopher Allan Webber
3b47da8eab Themes are now registered and can have their templates loaded properly 2012-07-14 12:55:13 -05:00
Christopher Allan Webber
828fc6300a Early version of theme registry code 2012-07-14 12:55:13 -05:00
Jakob Kramer
1e03504e9f removed _make_safe in favor of functools.wraps 2012-07-12 15:01:40 +02:00
Joar Wandborg
808eac008b Processing panel improvements
- Added admin processing panel
- Minor fixes on the user processing panel template
2012-07-11 01:43:21 +02:00
Joar Wandborg
6471291575 Panel improvements
- Added progress meter for video and audio media types.
- Changed the __repr__ method of a MediaEntry to display a bit more
  useful explanation.
- Added a new MediaEntry.state, 'processing', which means that the task
  is running the processor on the item currently.
- Fixed some PEP8 issues in user_pages/views.py
- Fixed the ATOM TAG URI to show the correct year.
2012-07-11 00:36:42 +02:00
Joar Wandborg
51eb0267d9 Minor improvements to the processing panel
- It is now possible to actually see what's processing, due to a bug fix
  where __getitem__ was called on the db model.
- Removed DEPRECATED message from the docstring, it wasn't true.
2012-07-10 18:13:02 +02:00
Brett Smith
81d3c4cf1c Merge branch 'master' into 201207-testfixes 2012-07-08 11:07:02 -04:00
Brett Smith
9c7688667e Drop our scoped session sooner to prevent SQLAlchemy re-binding warnings. 2012-07-08 11:00:36 -04:00
Brett Smith
16b8e3afd8 Don't rely on app_config if common.TESTS_ENABLED.
app_config will be None in this case, so all of these subscripts will
fail.
2012-07-08 10:37:33 -04:00
Brett Smith
4a791b8006 Make filestorage available to code that only imports storage.
The storage-related tests were relying on this, if nothing else.
2012-07-08 10:30:55 -04:00
Brett Smith
766d9ae7be Prevent SQLAlchemy non-Unicode warnings from this test. 2012-07-08 10:24:57 -04:00
Brett Smith
394512fb02 Prevent SQLAlchemy non-Unicode warnings in this test. 2012-07-08 10:23:02 -04:00
Brett Smith
ed3ff88eed More Unicode titles to prevent non-Unicode SQLAlchemy warnings. 2012-07-08 10:18:33 -04:00
Brett Smith
7a258b1408 Fix docstring typo. 2012-07-08 10:04:58 -04:00