1253 Commits

Author SHA1 Message Date
Christopher Allan Webber
36dc2eaa66 If I"m telling people to use fastcgi, we should probably use fastcgi ;) 2011-10-30 16:22:35 -05:00
Christopher Allan Webber
94011579e7 Hook mediagoblin up to nginx 2011-10-30 16:07:48 -05:00
Christopher Allan Webber
6b7779ea57 More easy options for deploying without having to modify paste.ini... 2011-10-30 13:58:54 -05:00
Christopher Allan Webber
e260065ae5 Added a lot more details to deploying.rst 2011-10-30 11:55:41 -05:00
Christopher Allan Webber
505310c292 Added a "broadcast" server config and a bit of helpful commenting (I hope!) 2011-10-30 11:51:40 -05:00
Christopher Allan Webber
91903aa601 [620] Allow for multiple mediagoblin configs to be set in config.ini, use first
This way we can copy paste.ini into paste_local.ini but not have to
update it to find mediagoblin_local.ini.
2011-10-29 17:04:19 -05:00
Christopher Allan Webber
9d0a613be9 Default to mediagoblin_local.ini if available in ./bin/gmg commands 2011-10-29 16:24:52 -05:00
Jef van Schendel
42652ad1d5 Merge remote branch 'remotes/elrond/misc/lazyserver_paste_local' 2011-10-29 16:13:39 -05:00
Jef van Schendel
3c486f3f68 Small style changes: decrease button text size, change navigation button background color 2011-10-29 14:27:14 -05:00
Christopher Allan Webber
b20fa83bc0 Removing this extra padding after form_field_box.
Maybe I'm wrong to do this, but it does seem excessive to me.

I should talk to Jef about it probably :)
2011-10-29 14:13:19 -05:00
Christopher Allan Webber
6f73c51e3c Removing comment_form link which doesn't do anything? 2011-10-29 14:11:45 -05:00
Christopher Allan Webber
18909d5994 Unclosed anchor tags in the tags! Fixed :) 2011-10-27 13:53:32 -05:00
Christopher Allan Webber
e360a99276 Only show the "post a comment" link if there's a logged in user 2011-10-27 13:13:19 -05:00
Christopher Allan Webber
ecc56c0afb Renamed "Temporary button holder" to "actions" 2011-10-27 10:52:18 -05:00
Christopher Allan Webber
c57b42a130 Removed suggestion that the user run ./bin/buildout 2011-10-26 11:24:39 -05:00
Christopher Allan Webber
4a4035c8af Added an extra warning about wipealldata being pretty inflexible. 2011-10-26 11:21:25 -05:00
Elrond
b63eadb08c lazyserver.sh: Try paste_local.ini before paste.ini
If users have a paste_local.ini, use that one instead of
the shipped paste.ini.
That way local changes will not interfere with the main
shipped config.

Also improve the help string (./lazyserver.sh -h) a bit.
2011-10-23 23:57:39 +02:00
Christopher Allan Webber
312643c12c flup, not flerp! 2011-10-23 16:12:10 -05:00
Christopher Allan Webber
839aeaa944 Merge remote branch 'remotes/elrond/misc/add_db_field' 2011-10-23 15:38:38 -05:00
Christopher Allan Webber
c0e1a70975 Merge remote branch 'remotes/elrond/refactor/gmg_cf_option' 2011-10-23 15:22:18 -05:00
Christopher Allan Webber
4b186b7398 Add a flup server option to the default paste.ini to make deployment a bit easier. 2011-10-23 15:21:15 -05:00
Christopher Allan Webber
cfb7ed7d38 Should be Lato-Regular.ttf not Lato-Regular.woff (why was it even working?) 2011-10-23 14:59:58 -05:00
Elrond
15ac1458ed Make gmg's -cf option a global option
All gmg's subcommands used to have a -cf option to set the
config file. Instead make this a gmg global option.
This means:
  bin/gmg migrate -cf mediagoblin_2.ini
gets
  bin/gmg -cf mediagoblin_2.ini migrate
2011-10-23 21:33:52 +02:00
Elrond
9043e7a012 Refactor gmg's cf option into a function
Many (all?) gmg subcommands take a -cf option to change the
used config file. This options used to be created in each
subcommand's parse_setup. Add a helper function and use it
around.
2011-10-23 12:47:25 +02:00
Elrond
733dc2c275 Change unit tests to use add_table_field
One of the test migrations adds a field. So rewrite it to
use the new add_table_field helper function.  This is a
good test for it.
2011-10-22 00:21:25 +02:00
Elrond
03d47730cd Factor out a add_table_field function
Migrations often just add a new field to some
table/collection. So just have a nice helper function for
this!
2011-10-21 22:17:16 +02:00
Christopher Allan Webber
eb5bb3fc99 Require an older version of WebOb as a stopgap fix for Issue #622
Hopefully they'll release a new version with my patch soon!
2011-10-18 17:50:24 -05:00
Christopher Allan Webber
5456843048 Now that we're encouraging in-package virtualenv use, we should update
.gitignore.  Done! ;)
2011-10-15 17:44:22 -05:00
Elrond
adf7945081 Hotfix: Renaming cookie broke unit tests
The name of the cookie was hardcoded in the unit tests and
while renaming the cookie this part was missed.

So now read the cookie_name from the config in the test.
This also tests for the config item existing!
2011-10-16 00:25:59 +02:00
Christopher Allan Webber
4715091970 Support for older webobs and newer webobs both in accept language mess :) 2011-10-15 16:57:45 -05:00
Christopher Allan Webber
ed59426466 Fixes issue662, MediaGoblin was broken by recent WebOb release.
From WebOb release notes:

  "Accept.best_matches() is gone; use list(request.accept) or
  request.accept.best_match(..) instead (applies to all Accept-*
  headers) or similar with request.accept_language."

... seems that's what borked it...
2011-10-15 16:46:04 -05:00
Christopher Allan Webber
f693f9af88 Merge remote branch 'remotes/elrond/misc/i592_use_full_path' 2011-10-15 11:07:13 -05:00
Christopher Allan Webber
76c94f6edf Merge remote branch 'remotes/elrond/idea/csrf_improvement' 2011-10-15 10:28:37 -05:00
Elrond
b81926f614 Merge remote branch 'aaronw/bug601_blank_comments'
* aaronw/bug601_blank_comments:
  Make Comment posted! translatable.
  Update english translation file.
  Added a check to prevent blank messages from being posted.

Conflicts:
	mediagoblin/i18n/en/LC_MESSAGES/mediagoblin.po
2011-10-15 14:59:52 +02:00
Elrond
404d8fa9ae Merge remote branch 'aaronw/bug608_checkbox_labels'
* aaronw/bug608_checkbox_labels:
  No need to translate label name.
  Add label tag to fix translation issue.
  Update english translation file.
  Checkbox label is being translated in the form definition -- translating it in the template is redundant and breaks <label> functionality.

Conflicts:
	mediagoblin/i18n/en/LC_MESSAGES/mediagoblin.po
2011-10-15 14:15:36 +02:00
Elrond
b06e4f3b2d Improve indentation a bit
Only change: Indentation, nothing else!
2011-10-15 13:56:59 +02:00
Elrond
48ba47b570 Merge remote branch 'aaronw/feature469_comment_form_under_comments'
* aaronw/feature469_comment_form_under_comments:
  Put the trans tag in the right place.
  Move comment form below comments.
2011-10-15 13:54:58 +02:00
Aaron Williamson
f7ede646e4 Put the trans tag in the right place. 2011-10-14 19:33:48 -04:00
Elrond
2dc8d24932 Some mostly cosmetic changes to CSRF
* remove max_age - A session cookie is better, because it's
  a session thing, really.
* Call the cookie mediagoblin_csrftoken, much clearer.
* Use the SCRIPT_NAME for the path of the cookie, so that
  the cookie is sent back to the right place only.
  Alternatively the path= parameter could be removed, so
  that it defaults to '/'.
* call the randomness function only once, instead of twice.
  64 bits should be enough. If really more bits are needed,
  increase the number.
* Just give the number as cookie. No point in md5 and
  hexdigest in my view (those functions just make another
  representation).
* getrandbits gets a bit count directly, simpler API
2011-10-14 21:46:17 +02:00
Will Kahn-Greene
917d4663af Overhauls docs
* Removes a bunch of content that doesn't need to be in the suer manual
  anymore.
* Fixes issues so it's more readable in source form.
* Adds help chapter.
* Moves links out of paragraphs to reduce line length.
* Cleans up some language.
* Fixes some links.
2011-10-05 23:11:28 -04:00
Christopher Allan Webber
c0022ecc88 Fixing 404s, related to recent util refactoring. 2011-10-05 20:57:02 -05:00
Aaron Williamson
2b3a50db43 Make Comment posted! translatable. 2011-10-04 16:32:41 -04:00
Aaron Williamson
29264e0d74 No need to translate label name. 2011-10-04 16:12:43 -04:00
Aaron Williamson
ad6d2277da Add label tag to fix translation issue. 2011-10-04 16:11:47 -04:00
Aaron Williamson
b7206469fa Move comment form below comments. 2011-10-03 21:32:36 -04:00
Aaron Williamson
04590de053 Update english translation file. 2011-10-03 21:06:28 -04:00
Aaron Williamson
52bc9a31da Update english translation file. 2011-10-03 21:05:23 -04:00
Aaron Williamson
7298ffa11b Added a check to prevent blank messages from being posted. 2011-10-03 21:03:36 -04:00
Aaron Williamson
c302bcd918 Checkbox label is being translated in the form definition -- translating it in the template is redundant and breaks <label> functionality. 2011-10-03 20:47:39 -04:00
Elrond
05788ef450 i592: Use full path in various places
When running mediagoblin in a sub path on a web server,
most things inside mediagoblin need the "inside path", but
when generating URLs for the webbrowser, full paths are
needed.

urlgen and routes already do that.

Some (mostly pagination and login) need the URL of the
current page. They used request.path_info. But this is the
"inside" path, not the full.

So now there is request.full_path and its used in various
places.
2011-10-03 14:01:13 +02:00