Jef van Schendel [Sun, 18 Dec 2011 00:04:41 +0000 (01:04 +0100)]
First test lines for responsive design
Jef van Schendel [Sat, 17 Dec 2011 23:31:39 +0000 (00:31 +0100)]
Show actual comment number. Only shows plural for now (ticket #712)
Elrond [Sat, 17 Dec 2011 20:37:02 +0000 (21:37 +0100)]
Simple Mongo -> SQL migration tool
This is just a start at a Migration tool from Mongo to SQL.
It fills all currently available SQL models with data from
MongoDB. A few fields in the SQL tables are left out,
because some data format migrations are needed (notably:
queue_file_name).
This thing lives in mediagoblin/db/sql/convert.py because
it has a lot of stuff hardcoded and is not, repeat not for
end users!
Hard coded:
- output database: ./mediagoblin.db (sqlite)
- Mediagoblin config: ./mediagoblin.ini
Elrond [Sat, 17 Dec 2011 16:34:55 +0000 (17:34 +0100)]
Little sql model update
- Add title to the MediaEntry
- Rename fp_verification_expire to fp_token_expire to
follow the mongo model.
Joar Wandborg [Thu, 15 Dec 2011 22:49:52 +0000 (23:49 +0100)]
Fixed import_export
- Mongokit instead of pymongo
- db.MediaEntry instead of db.media_entry (pymongo style)
Elrond [Thu, 15 Dec 2011 21:11:49 +0000 (22:11 +0100)]
SQL: Some toys and little fix
Run bin/python mediagoblin/db/sql/models.py and watch the
create tables on a memory sqlite db.
Also unicode strings need unicode defauls. Warning by
sqlalchemy.
Elrond [Thu, 15 Dec 2011 20:15:21 +0000 (21:15 +0100)]
Move sql models into db/sql/
So we can play with the sql models, let's put them in a
proper place.
Elrond [Thu, 15 Dec 2011 20:10:01 +0000 (21:10 +0100)]
Merge remote branch 'remotes/cwebber/sqlalchemy'
* remotes/cwebber/sqlalchemy:
Beginnings of sqlalchemy models
Will Kahn-Greene [Thu, 15 Dec 2011 14:27:56 +0000 (09:27 -0500)]
Fix -dev version and add version number docs
Version numbers should adhere to PEP-386.
Jef van Schendel [Wed, 14 Dec 2011 15:42:40 +0000 (16:42 +0100)]
Change "Submit" to "Add" for ticket #466
Jef van Schendel [Wed, 14 Dec 2011 15:36:29 +0000 (16:36 +0100)]
Remove "X license" placeholder from media page
Jef van Schendel [Wed, 14 Dec 2011 15:18:26 +0000 (16:18 +0100)]
Change wording for change_fp; improved the button text
Elrond [Tue, 13 Dec 2011 20:35:15 +0000 (21:35 +0100)]
Merge remote branch 'joar/b681-comments_from_reviewing_video'
* joar/b681-comments_from_reviewing_video:
Bug 681 - Comments from reviewing the new video merge
Jef van Schendel [Tue, 13 Dec 2011 14:15:57 +0000 (15:15 +0100)]
Merge jQuery branch, resolve conflicts
Elrond [Mon, 12 Dec 2011 17:53:03 +0000 (18:53 +0100)]
Merge branch 'sql/dot-notation'
* sql/dot-notation:
Dot-Notation for MediaEntry.media_data
Dot-Notation for MediaEntry.media_type
Dot-Notation for MediaEntry.description(_html)
Dot-Notation for MediaEntry.slug
Dot-Notation for MediaEntry.title
Dot-Notation for MediaEntry.uploader
Dot-Notation for MediaEntry.created
Dot-Notation: tests/test_edit.py
Dot-Notation for Users.fp_token_expire
Dot-Notation for Users.fp_verification_key
Dot-Notation for Users.bio and .bio_html
Dot-Notation for Users.url
Dot-Notation for Users.is_admin
Dot-Notation for Users.verification_key
Dot-Notation for Users.status
Dot-Notation for Users.email_verified
Dot-Notation for Users.pw_hash
Dot-Notation for Users.email
Dot-Notation for Users.username
Will Kahn-Greene [Mon, 12 Dec 2011 16:52:24 +0000 (11:52 -0500)]
Changer version to -dev
Will Kahn-Greene [Mon, 12 Dec 2011 16:41:29 +0000 (11:41 -0500)]
Update version numbers
Will Kahn-Greene [Mon, 12 Dec 2011 16:12:59 +0000 (11:12 -0500)]
Fix doc footer
This has the correct copyright statement.
Will Kahn-Greene [Mon, 12 Dec 2011 15:48:24 +0000 (10:48 -0500)]
Tweak rest formatting
Christopher Allan Webber [Mon, 12 Dec 2011 15:45:45 +0000 (09:45 -0600)]
Updated translations
Christopher Allan Webber [Mon, 12 Dec 2011 15:44:48 +0000 (09:44 -0600)]
Added the "Media types" chapter
Will Kahn-Greene [Mon, 12 Dec 2011 15:20:05 +0000 (10:20 -0500)]
Doc updates
* fixed some language
* fixed some consistency issues
* fixed some 80-line-width issues
* fixed some typos and markup problems
Will Kahn-Greene [Mon, 12 Dec 2011 15:17:03 +0000 (10:17 -0500)]
Add some documentation to lazyserver.sh
I had no idea what it did, so I asked and tossed the answer at the
top of the script.
Will Kahn-Greene [Mon, 12 Dec 2011 14:53:41 +0000 (09:53 -0500)]
Update README
* tweaked some language
* fixed some statements that aren't correct anymore
Will Kahn-Greene [Mon, 12 Dec 2011 14:46:23 +0000 (09:46 -0500)]
Tweak runtests to be more helpful
If nose isn't installed, then runtests.sh says it can't find nosetests
and exits, but doesn't tell you what you need to do to fix the situation.
This fixes that.
Christopher Allan Webber [Mon, 12 Dec 2011 14:15:16 +0000 (08:15 -0600)]
Removed extraneous whitespace from video.html
Christopher Allan Webber [Mon, 12 Dec 2011 14:13:46 +0000 (08:13 -0600)]
Add a note on how to up the upload size limit
Christopher Allan Webber [Mon, 12 Dec 2011 14:10:10 +0000 (08:10 -0600)]
Allow administrators to disable keeping the original. That's the new default!
Christopher Allan Webber [Mon, 12 Dec 2011 13:35:47 +0000 (07:35 -0600)]
Mark "newer/older" buttons for translation
Jef van Schendel [Sat, 10 Dec 2011 20:03:18 +0000 (21:03 +0100)]
Style changes for media_uploader (now media_specs); removed margins from button_action buttons
Jef van Schendel [Sat, 10 Dec 2011 18:58:02 +0000 (19:58 +0100)]
Remove pagination images and replace them with unicode characters
Jef van Schendel [Fri, 9 Dec 2011 22:47:11 +0000 (23:47 +0100)]
Change wording in tags.html
Jef van Schendel [Fri, 9 Dec 2011 21:48:20 +0000 (22:48 +0100)]
Open Markdown link in new windows; I know _blank is sometimes frowned upon but it may be useful here
Jef van Schendel [Fri, 9 Dec 2011 21:45:26 +0000 (22:45 +0100)]
Only apply textarea style to comment box
Jef van Schendel [Fri, 9 Dec 2011 21:37:20 +0000 (22:37 +0100)]
Lots of changes to media page; rearranged things, added new styles, added jquery bits, gave the comment section a refresh
Jef van Schendel [Wed, 7 Dec 2011 21:15:48 +0000 (22:15 +0100)]
Move author text, "By X", to the sidebar
Joar Wandborg [Tue, 6 Dec 2011 22:05:47 +0000 (23:05 +0100)]
Bug 681 - Comments from reviewing the new video merge
in mediagoblin.media_types and submodules
- Moved VideoThumbnailer.errors initialization to VideoThumbnailer.__init__
- Cleaned up the image.processing imports
- Removed default ``None`` from get_media_manager(_media_type)
in mediagoblin.views
- Removed media_types import
- Removed sys import, and passing of sys to root.html template
Elrond [Sun, 4 Dec 2011 19:26:36 +0000 (20:26 +0100)]
Dot-Notation for MediaEntry.media_data
Elrond [Sun, 4 Dec 2011 19:16:01 +0000 (20:16 +0100)]
Dot-Notation for MediaEntry.media_type
Elrond [Sun, 4 Dec 2011 19:06:42 +0000 (20:06 +0100)]
Dot-Notation for MediaEntry.description(_html)
Elrond [Sun, 4 Dec 2011 18:57:42 +0000 (19:57 +0100)]
Dot-Notation for MediaEntry.slug
Elrond [Tue, 22 Nov 2011 23:10:42 +0000 (00:10 +0100)]
Dot-Notation for MediaEntry.title
Elrond [Mon, 21 Nov 2011 19:18:38 +0000 (20:18 +0100)]
Dot-Notation for MediaEntry.uploader
Elrond [Mon, 14 Nov 2011 17:39:18 +0000 (18:39 +0100)]
Dot-Notation for MediaEntry.created
Elrond [Mon, 21 Nov 2011 11:56:26 +0000 (12:56 +0100)]
Dot-Notation: tests/test_edit.py
convert tests/test_edit.py over to Dot-Notation. It only
accesses the User object.
Elrond [Mon, 14 Nov 2011 18:24:15 +0000 (19:24 +0100)]
Dot-Notation for Users.fp_token_expire
Elrond [Mon, 14 Nov 2011 18:21:33 +0000 (19:21 +0100)]
Dot-Notation for Users.fp_verification_key
Elrond [Mon, 14 Nov 2011 18:19:54 +0000 (19:19 +0100)]
Dot-Notation for Users.bio and .bio_html
Elrond [Mon, 14 Nov 2011 18:16:02 +0000 (19:16 +0100)]
Dot-Notation for Users.url
Elrond [Mon, 14 Nov 2011 18:08:43 +0000 (19:08 +0100)]
Dot-Notation for Users.is_admin
Elrond [Mon, 14 Nov 2011 18:04:13 +0000 (19:04 +0100)]
Dot-Notation for Users.verification_key
Elrond [Mon, 14 Nov 2011 18:01:26 +0000 (19:01 +0100)]
Dot-Notation for Users.status
Elrond [Mon, 14 Nov 2011 17:54:52 +0000 (18:54 +0100)]
Dot-Notation for Users.email_verified
Elrond [Mon, 14 Nov 2011 17:49:21 +0000 (18:49 +0100)]
Dot-Notation for Users.pw_hash
Elrond [Mon, 14 Nov 2011 16:22:33 +0000 (17:22 +0100)]
Dot-Notation for Users.email
Elrond [Mon, 14 Nov 2011 14:39:57 +0000 (15:39 +0100)]
Dot-Notation for Users.username
Christopher Allan Webber [Mon, 5 Dec 2011 14:37:20 +0000 (08:37 -0600)]
Update comment URLs to use the media slug.
Christopher Allan Webber [Mon, 5 Dec 2011 14:35:42 +0000 (08:35 -0600)]
Update the delete item to use the _id after all... it's the safest way.
See http://bugs.foocorp.net/issues/695
Christopher Allan Webber [Mon, 5 Dec 2011 05:58:58 +0000 (23:58 -0600)]
Cloudfiles not actually a dependency, removing from setup.py
If users want cloudfiles, they can always ./bin/easy_install it.
Christopher Allan Webber [Mon, 5 Dec 2011 05:14:08 +0000 (23:14 -0600)]
Merge remote-tracking branch 'remotes/lorochka85/bug852_use_media_slug_instead_of_id'
Conflicts:
mediagoblin/decorators.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
tycho garen [Sun, 4 Dec 2011 22:06:54 +0000 (17:06 -0500)]
DOCS:: #675 revision to deployment and production documents
Christopher Allan Webber [Sun, 4 Dec 2011 21:27:00 +0000 (15:27 -0600)]
Filled in reason #3 to submit separate out celery.
Christopher Allan Webber [Sun, 4 Dec 2011 20:39:42 +0000 (14:39 -0600)]
Fix button word-wrapping issue
Christopher Allan Webber [Sun, 4 Dec 2011 19:59:13 +0000 (13:59 -0600)]
Merge remote-tracking branch 'tychoish/master'
Christopher Allan Webber [Sun, 4 Dec 2011 19:57:35 +0000 (13:57 -0600)]
Compiled the .mo files too
Christopher Allan Webber [Sun, 4 Dec 2011 19:56:55 +0000 (13:56 -0600)]
Updated translations
tycho garen [Sun, 4 Dec 2011 19:51:00 +0000 (14:51 -0500)]
DOCS: update to deployment documentation and new production deployments doc
Christopher Allan Webber [Sun, 4 Dec 2011 17:06:08 +0000 (11:06 -0600)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Sun, 4 Dec 2011 16:24:42 +0000 (10:24 -0600)]
Removing the conditional that checks if there's a media in media.html
If there isn't a media, we shouldn't hit that template! The view
should ensure that.
Christopher Allan Webber [Sun, 4 Dec 2011 16:21:58 +0000 (10:21 -0600)]
Change "Your finest source of goblin related media" to something else
We don't want to insist everyone hold a goblin-related gallery :)
Elrond [Sun, 4 Dec 2011 13:59:33 +0000 (14:59 +0100)]
Merge branch 'misc/fixture_add_user'
* misc/fixture_add_user:
fixture_add_user: Factoring a unit test tool
Christopher Allan Webber [Sun, 4 Dec 2011 03:59:52 +0000 (21:59 -0600)]
Most users won't see this but having space after prompt still nice for passwords.
Christopher Allan Webber [Sun, 4 Dec 2011 03:56:30 +0000 (21:56 -0600)]
PEP-8'ifying prompt_if_not_set
Christopher Allan Webber [Sun, 4 Dec 2011 03:43:15 +0000 (21:43 -0600)]
Merge remote-tracking branch 'remotes/manolinux/645_gmg_adduser_prompt'
Christopher Allan Webber [Sun, 4 Dec 2011 03:38:45 +0000 (21:38 -0600)]
Raise a slightly useful exception when we can't find the media type.
Christopher Allan Webber [Sat, 3 Dec 2011 22:59:20 +0000 (16:59 -0600)]
Updated translations
Elrond [Sat, 3 Dec 2011 21:11:54 +0000 (22:11 +0100)]
Merge remote branch 'remotes/manolinux/671_spaces_in_tag_list_edit'
* remotes/manolinux/671_spaces_in_tag_list_edit:
* Feature #678: Drop custom delimiters in tags * Eliminate the definition of the tag delimiter for tests. * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read * Modify a test to include this space.
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
Elrond [Sat, 3 Dec 2011 20:20:11 +0000 (21:20 +0100)]
Bug #685: only provide CSRF token if it exists
This was suggested by Nathan Yergler in the bug logs.
Just implementing it.
- Let render_csrf_form_token return None, if the CSRF_TOKEN
is not available in the environ, because the
process_request part of the meddleware has not yet run.
- In render_template: If the returned value from above is
None, then do not add the csrf_token to the templates
context.
Elrond [Sat, 3 Dec 2011 15:45:33 +0000 (16:45 +0100)]
Bug #685: Add failing unit test
The simplest way to reproduce Bug #685 is to ask for a non
existent page. This should return a proper 404. It
currently doesn't.
So add a unit test exactly for this.
This unit test fails currently! It will fail until the bug
gets fixed.
Manuel Urbano Santos [Sat, 3 Dec 2011 14:36:02 +0000 (15:36 +0100)]
Prompt for arguments in adduser if not present (I created a function in util.py to check and prompt for arguments).
Manuel Urbano Santos [Sat, 3 Dec 2011 13:29:28 +0000 (14:29 +0100)]
Change adduser arguments from positional to --keyword style.
Jef van Schendel [Sat, 3 Dec 2011 00:19:15 +0000 (01:19 +0100)]
Changed comment error message wording slightly. Btw, should we translate these things?
Jef van Schendel [Fri, 2 Dec 2011 22:48:40 +0000 (23:48 +0100)]
Add show-password checkbox and make it work
Christopher Allan Webber [Fri, 2 Dec 2011 22:13:14 +0000 (16:13 -0600)]
We should use the variable local_templates instead of user_template_path
Jef van Schendel [Fri, 2 Dec 2011 20:17:55 +0000 (21:17 +0100)]
First push with jQuery library
Elrond [Thu, 1 Dec 2011 23:09:13 +0000 (00:09 +0100)]
Expect 404 in unit tests, if we now use 404.
Our unit tests for auth were expecting a 400.
Well, now we give a 404. So expect that!
I'm not completely sure, if the 404 is the right thing
here, but that's another topic.
Christopher Allan Webber [Thu, 1 Dec 2011 22:59:22 +0000 (16:59 -0600)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Thu, 1 Dec 2011 22:58:56 +0000 (16:58 -0600)]
Should be 404 for 404s, not 400 :)
Elrond [Thu, 1 Dec 2011 22:33:47 +0000 (23:33 +0100)]
fixture_add_user: Factoring a unit test tool
Some unit tests need a user in the database, especially to
act as that user. Some routines did that on their own. So
factored this whole thing into a new function and use it
around.
Christopher Allan Webber [Thu, 1 Dec 2011 21:21:15 +0000 (15:21 -0600)]
Don't barf on templates that use the autoescaping extension
Elrond [Mon, 28 Nov 2011 17:40:45 +0000 (18:40 +0100)]
Merge remote branch 'remotes/nyergler/issue-680-csrf-optout'
* remotes/nyergler/issue-680-csrf-optout:
Issue 680 Allow decorating views to prevent CSRF protection.
Issue 680: Dispatch meddleware request processing post-routing
Elrond [Mon, 28 Nov 2011 08:45:15 +0000 (09:45 +0100)]
Mark two strings for translation
1. "Go to page:" in pagination
2. "Submit" in the forget password form
Elrond [Sun, 27 Nov 2011 22:23:20 +0000 (23:23 +0100)]
Merge remote branch 'remotes/manolinux/683_text_separate_tags_by_commas_and_spaces'
* remotes/manolinux/683_text_separate_tags_by_commas_and_spaces:
Fix the text "Seperate tags by commas and spaces" since spaces are not used to seperate anymore.
Christopher Allan Webber [Sun, 27 Nov 2011 21:31:42 +0000 (15:31 -0600)]
Updating translations
Manuel Urbano Santos [Sun, 27 Nov 2011 13:31:20 +0000 (14:31 +0100)]
Fix the text "Seperate tags by commas and spaces" since spaces are not used to seperate anymore.
Manuel Urbano Santos [Sun, 27 Nov 2011 12:55:07 +0000 (13:55 +0100)]
* Feature #678: Drop custom delimiters in tags
* Eliminate the definition of the tag delimiter for tests.
* Remove a test that was related to custom tags delimiter.
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read
* Modify a test to include this space.
Manuel Urbano Santos [Sun, 27 Nov 2011 12:49:47 +0000 (13:49 +0100)]
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma.
* Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
Nathan Yergler [Sat, 26 Nov 2011 23:32:35 +0000 (15:32 -0800)]
Issue 680 Allow decorating views to prevent CSRF protection.
Nathan Yergler [Sat, 26 Nov 2011 22:34:36 +0000 (14:34 -0800)]
Issue 680: Dispatch meddleware request processing post-routing
Elrond [Sat, 26 Nov 2011 12:50:06 +0000 (13:50 +0100)]
Merge remote branch 'remotes/inconexo/588_lowercase_extension'
* remotes/inconexo/588_lowercase_extension:
Filename extensions are lowercased before uploading the image.
The merge failed really. It tried to apply the changes to
the wrong file. So applied them by hand to
mediagoblin/media_types/image/processing.py
Conflicts:
mediagoblin/processing.py