1238 Commits

Author SHA1 Message Date
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
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
Christopher Allan Webber
4d7a93a493 Adding csrf token fields to the forgot password calls 2011-10-01 21:31:14 -05:00
Christopher Allan Webber
88233cb282 Fixing indentation in start.html 2011-10-01 21:30:41 -05:00
Christopher Allan Webber
b43b17fc26 Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'
Conflicts:
	mediagoblin/util.py
2011-10-01 21:27:36 -05:00
Christopher Allan Webber
e27396802c Merge remote branch 'remotes/jwandborg/storage_split_fix' 2011-10-01 20:54:24 -05:00
Christopher Allan Webber
1268521b20 Merge remote branch 'remotes/nyergler/569-application-middleware' 2011-10-01 20:45:43 -05:00
Christopher Allan Webber
3ffb3a05ce Merge remote branch 'remotes/elrond/misc/f602_client_cache_improvement' 2011-10-01 20:38:07 -05:00
Aaron Williamson
91e42c467d Merge branch 'mediagoblin-upstream' into bug444_fix_utils_py_redux 2011-10-01 18:09:49 -04:00
Aaron Williamson
152a3bfaa3 Finished splitting util.py into separate files. 2011-10-01 18:05:44 -04:00
Aaron Williamson
03ae172a60 Finished splitting util.py into separate files. 2011-10-01 18:05:17 -04:00
Nathan Yergler
9202e5a1e1 #361: Removing additional secret key, per CW's request. 2011-10-01 14:24:49 -07:00
Nathan Yergler
4f475d3024 #361 Unit tests for CSRF Middleware 2011-10-01 14:21:02 -07:00
Nathan Yergler
7e694e5fd8 #361: Don't test for CSRF token if we're running unit tests. 2011-10-01 14:20:35 -07:00
Nathan Yergler
5d2abe45b2 PEP8-ification. 2011-10-01 12:48:43 -07:00
Nathan Yergler
6bfbe02426 Merge remote-tracking branch 'refs/remotes/upstream/master' into 569-application-middleware
Conflicts:
	mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
2011-10-01 12:08:58 -07:00
Aaron Williamson
7ce09f6ac4 Merge branch 'mediagoblin-upstream' into bug444_fix_utils_py_redux 2011-10-01 09:32:43 -04:00