Christopher Allan Webber [Sun, 10 Jul 2011 23:27:38 +0000 (18:27 -0500)]
install_migration_version_if_missing() now a separate function
Also added it to MigrationManager.migrate_new(), because we'll always
need a migration number when migrating.
Christopher Allan Webber [Sun, 10 Jul 2011 21:23:36 +0000 (16:23 -0500)]
Make sure all these strings in db/util.py are unicode
Christopher Allan Webber [Sun, 10 Jul 2011 21:19:49 +0000 (16:19 -0500)]
Added the actual fake/testing migrations. Haven't run them yet...
Christopher Allan Webber [Sun, 10 Jul 2011 20:41:18 +0000 (15:41 -0500)]
Simpler run_migrations method.
Allows for calbacks, should be useful for printing output and catching
things in tests.
Gets rid of the generator stuff which now that I think of it is a
messy idea.
Christopher Allan Webber [Sun, 10 Jul 2011 20:28:46 +0000 (15:28 -0500)]
test_migrations.py w/ migrate'able fixtures and some migration scaffolding
Not usable yet, but fleshing out well!
Christopher Allan Webber [Sat, 9 Jul 2011 23:17:54 +0000 (18:17 -0500)]
Making sure migration_number > 0 :)
Christopher Allan Webber [Sat, 9 Jul 2011 22:21:47 +0000 (17:21 -0500)]
run_new_migrations() makes more sense
Christopher Allan Webber [Sat, 9 Jul 2011 20:10:47 +0000 (15:10 -0500)]
Some instructions in the RegisterMigration docstring on how to use.
Christopher Allan Webber [Sat, 9 Jul 2011 20:07:40 +0000 (15:07 -0500)]
latest_migration now returns migration numbers only, and 0 if no migrations.
Christopher Allan Webber [Sat, 9 Jul 2011 19:51:48 +0000 (14:51 -0500)]
Migrating quietly, not iteratively, that comment should say!
Christopher Allan Webber [Sat, 9 Jul 2011 19:50:41 +0000 (14:50 -0500)]
New migration utility code.... I haven't tested this! ;)
I think it's looking right though.
- Provides MigrationManager which should have plenty of utilities for
doing migrations hopefully correctly :)
- Provides RegisterMigration which should be able to decorate
migrations and register them in doing so
Christopher Allan Webber [Sat, 9 Jul 2011 14:30:43 +0000 (09:30 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b404_v3_edit_profile_submit_fail'
Christopher Allan Webber [Sat, 9 Jul 2011 14:23:34 +0000 (09:23 -0500)]
Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry'
Christopher Allan Webber [Sat, 9 Jul 2011 14:20:22 +0000 (09:20 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty'
Christopher Allan Webber [Sat, 9 Jul 2011 14:19:04 +0000 (09:19 -0500)]
Merge remote branch 'remotes/schendje/master'
Christopher Allan Webber [Sat, 9 Jul 2011 14:02:57 +0000 (09:02 -0500)]
Removing trailing whitespace from this file
Christopher Allan Webber [Sat, 9 Jul 2011 14:02:17 +0000 (09:02 -0500)]
Add a warning to the user that registrations are disabled.
Christopher Allan Webber [Sat, 9 Jul 2011 13:58:22 +0000 (08:58 -0500)]
Merge remote branch 'remotes/amusablelemur/feature374'
Rasmus Larsson [Sat, 9 Jul 2011 13:52:30 +0000 (15:52 +0200)]
Updated spacings in code for better readability
Rasmus Larsson [Sat, 9 Jul 2011 13:19:55 +0000 (15:19 +0200)]
Updated the loginpage to not show a link to register if registrations are disabled
Rasmus Larsson [Sat, 9 Jul 2011 13:12:00 +0000 (15:12 +0200)]
Added configuration variable to toggle registrations, if disabled the registration page redirects to index and no link to register is shown
Rasmus Larsson [Sat, 9 Jul 2011 00:47:06 +0000 (02:47 +0200)]
Removed route, view and template file for "Submit Success" page
Jef van Schendel [Fri, 8 Jul 2011 14:05:20 +0000 (16:05 +0200)]
Tiny height fix to footer
Jef van Schendel [Fri, 8 Jul 2011 14:03:17 +0000 (16:03 +0200)]
Tiny padding fix for forms/h1
Jef van Schendel [Fri, 8 Jul 2011 14:01:07 +0000 (16:01 +0200)]
Fix logo styling, positioning
Jef van Schendel [Fri, 8 Jul 2011 13:53:45 +0000 (15:53 +0200)]
Moved Submit button to header, styled button
Jef van Schendel [Fri, 8 Jul 2011 13:22:15 +0000 (15:22 +0200)]
Added sidebar to profile page; moved some content
Jef van Schendel [Fri, 8 Jul 2011 13:14:27 +0000 (15:14 +0200)]
Remove p style; not need yet
Joar Wandborg [Thu, 7 Jul 2011 20:45:51 +0000 (22:45 +0200)]
Updated `MediaCommentForm.field_comment` => `MediaCommentForm.comment_content`
* Also changed file encoding of `user_pages/forms.py` from dos to unix.
Jef van Schendel [Thu, 7 Jul 2011 18:04:30 +0000 (20:04 +0200)]
Change pagination styling; add 2 images
Caleb Forbes Davis V [Thu, 7 Jul 2011 16:11:03 +0000 (11:11 -0500)]
Bug #437 - adds required validator to slug field for media edit'
otherwise we get a 404 because we navigate to blank slug
Joar Wandborg [Thu, 7 Jul 2011 16:04:19 +0000 (18:04 +0200)]
Issue #431 - Prevent comment link expiry - Added functionality for comment linking
* `media.html`
* Changed comment textarea handle from `comment` => `field_comment`
* Active comment is hilighted with the CSS class name `comment_active`
and also with the hyperlink anchor #comment
* Changed media.html so that pagination always uses
Route('mediagoblin.user_pages.media_home') as base_url
* `user_pages/forms.py`
* Renamed MediaComment form field `comment` => `field_comment`
* `user_pages/routing.py`
* Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home`
* `user_pages/views.py`
* `media_home` now checks if the request contains a comment id parameter
then acts accordingly with pagination whether to call it with a
`jump_to_id` or not.
* `media_post_comment` - Updated MediaCommentForm field name
`comment` => `field_comment`
* `util.py`
* `redirect` now supports querystring arguments. - NOT USED (should we
keep it? I think so, it might be useful, sometime [don't call me a
code hoarder]).
* `Pagination.__init__` now accepts one further argument, the `jump_to_id`.
It assist the comment linking functionality in finding and returning the
proper page for a comment.
This feature will work for all kinds of objects. It might not be
optimal, but it is well functional :)
Jef van Schendel [Thu, 7 Jul 2011 15:54:33 +0000 (17:54 +0200)]
Additional style changes to navigation; add three navigation images
Caleb Forbes Davis V [Thu, 7 Jul 2011 15:45:23 +0000 (10:45 -0500)]
bug #404 - corrects querystring variable name in redirect
Jef van Schendel [Thu, 7 Jul 2011 15:21:02 +0000 (17:21 +0200)]
Experimental black-and-white style change
Christopher Allan Webber [Thu, 7 Jul 2011 13:22:12 +0000 (08:22 -0500)]
This should actually fix the next and previous buttons now. Sorry I borked the merge!
Christopher Allan Webber [Thu, 7 Jul 2011 03:52:08 +0000 (22:52 -0500)]
Also encourages editing your profile and submitting images
Christopher Allan Webber [Thu, 7 Jul 2011 03:49:53 +0000 (22:49 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/f424_email_verified_messaging'
Christopher Allan Webber [Thu, 7 Jul 2011 03:47:33 +0000 (22:47 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/f423_match_image_ordering_between_scroll_and_gallery'
Conflicts:
mediagoblin/db/models.py
Christopher Allan Webber [Thu, 7 Jul 2011 03:38:19 +0000 (22:38 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b404_v2_redirect_after_profile_edit'
Conflicts:
mediagoblin/edit/views.py
Christopher Allan Webber [Thu, 7 Jul 2011 03:35:19 +0000 (22:35 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b429_fix_edit_profile_form_validation'
Christopher Allan Webber [Thu, 7 Jul 2011 03:34:33 +0000 (22:34 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/f435_limit_prev_next_by_processed'
Christopher Allan Webber [Thu, 7 Jul 2011 03:33:37 +0000 (22:33 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b434_prev_next_use_slug'
Christopher Allan Webber [Thu, 7 Jul 2011 03:29:12 +0000 (22:29 -0500)]
Instructions for installing MediaGoblin on Fedora
Caleb Forbes Davis V [Wed, 6 Jul 2011 22:14:07 +0000 (17:14 -0500)]
edit profile submit redirects to user home page
Caleb Forbes Davis V [Wed, 6 Jul 2011 03:11:56 +0000 (22:11 -0500)]
B #429 - form validation allows blank profile url
Caleb Forbes Davis V [Wed, 6 Jul 2011 02:40:00 +0000 (21:40 -0500)]
slug-style urls in previous and next urls look much better
Bug #434 - identifies media by slug instead of _id in prev/next
Caleb Forbes Davis V [Wed, 6 Jul 2011 02:33:02 +0000 (21:33 -0500)]
f#435 - avoids linking to unprocessed media in prev and next
Will Kahn-Greene [Tue, 5 Jul 2011 13:36:07 +0000 (09:36 -0400)]
Makes maketarball more resilient to errors
Will Kahn-Greene [Tue, 5 Jul 2011 13:26:45 +0000 (09:26 -0400)]
Updates version to 0.0.3.
Will Kahn-Greene [Tue, 5 Jul 2011 13:23:20 +0000 (09:23 -0400)]
Adds tarball generation script
This just makes it easier to generate tarballs of master and
tarballs of releases.
Caleb Forbes Davis V [Tue, 5 Jul 2011 01:24:57 +0000 (20:24 -0500)]
Feature #423 - gallery and scroll image ordering match
Caleb Forbes Davis V [Tue, 5 Jul 2011 01:04:00 +0000 (20:04 -0500)]
allows using messaging instead of verify_email.html to pass tests
* re-instated verification_successful flag
* modified test_auth to verify nav to user_pages/user.html template
Caleb Forbes Davis V [Tue, 5 Jul 2011 00:42:45 +0000 (19:42 -0500)]
uses the messaging system to notify user of result of verification check
Feature #424 - Use messaging system for email verifification check response
* uses add_message in verify_email and routes to the user page, bypassing
verify_email.html
Christopher Allan Webber [Mon, 4 Jul 2011 22:08:10 +0000 (17:08 -0500)]
This extra <br /> is maybe a bit too much space...
Christopher Allan Webber [Mon, 4 Jul 2011 21:58:07 +0000 (16:58 -0500)]
A few media thumbnail changes pre-release
- adjust padding so 5 media thumbs can appear per row
- lowering the h1 margins
- adding a profile content bottom margin
Christopher Allan Webber [Mon, 4 Jul 2011 21:54:06 +0000 (16:54 -0500)]
Don't even show the profile box if no profile exists
Christopher Allan Webber [Mon, 4 Jul 2011 20:40:05 +0000 (15:40 -0500)]
Set the jpeg quality at 90 for now...
Christopher Allan Webber [Mon, 4 Jul 2011 16:17:51 +0000 (11:17 -0500)]
Put some space between the gallery and the rest of the page content
Christopher Allan Webber [Mon, 4 Jul 2011 14:41:57 +0000 (09:41 -0500)]
Not happy with 180x135, switching back to 180x180
Christopher Allan Webber [Mon, 4 Jul 2011 14:41:43 +0000 (09:41 -0500)]
Move submit an item to the user page.
Christopher Allan Webber [Mon, 4 Jul 2011 14:11:13 +0000 (09:11 -0500)]
Put the profile stuff in p's instead of <ul>'s
Christopher Allan Webber [Mon, 4 Jul 2011 14:08:57 +0000 (09:08 -0500)]
.message_info was missing closing }
Christopher Allan Webber [Mon, 4 Jul 2011 14:04:37 +0000 (09:04 -0500)]
Adjusting indentation of object_gallery.html
Christopher Allan Webber [Mon, 4 Jul 2011 13:49:52 +0000 (08:49 -0500)]
Put link to edit profile slightly after the profile
Christopher Allan Webber [Mon, 4 Jul 2011 13:47:46 +0000 (08:47 -0500)]
Removing a tab... hate mixed tabs and spaces :)
Christopher Allan Webber [Mon, 4 Jul 2011 13:47:28 +0000 (08:47 -0500)]
Just removing some trailing whitespace
Christopher Allan Webber [Mon, 4 Jul 2011 13:47:02 +0000 (08:47 -0500)]
Check user['_id'] instead of username, which is slightly more guaranteed
Caleb Forbes Davis V [Mon, 4 Jul 2011 04:59:11 +0000 (23:59 -0500)]
bug#422_user_can_not_edit_own_profile_unless_admin
user != username.....
Christopher Allan Webber [Sun, 3 Jul 2011 22:38:28 +0000 (17:38 -0500)]
Fixing the symlinks for these CSS files
Not everyone runs mediagoblin out of
/home/jef/env/mediagoblin/src/schendjes-mediagoblin/ ;)
Christopher Allan Webber [Sun, 3 Jul 2011 22:37:41 +0000 (17:37 -0500)]
New thumbnail size is apparently 180x135.
We don't know if that's permanent but if it isn't it seems "Mostly Harmless"
Jef van Schendel [Sun, 3 Jul 2011 21:32:39 +0000 (23:32 +0200)]
Style changes to messages. Tell me if I changed too much...
Jef van Schendel [Sun, 3 Jul 2011 21:13:54 +0000 (23:13 +0200)]
Tiny margin changes
Jef van Schendel [Sun, 3 Jul 2011 21:04:09 +0000 (23:04 +0200)]
Style navigation buttons
Jef van Schendel [Sun, 3 Jul 2011 20:29:36 +0000 (22:29 +0200)]
First push with 180px wide thumbnails
Jef van Schendel [Sun, 3 Jul 2011 19:37:21 +0000 (21:37 +0200)]
Switched over to 960_16_col. This may break a bunch of stuff. If you find something that is broken, slap me.
Jef van Schendel [Sun, 3 Jul 2011 19:20:09 +0000 (21:20 +0200)]
Added reset.css and text.css from 960.gs. This might shake up a few styles!
Jef van Schendel [Sun, 3 Jul 2011 19:12:22 +0000 (21:12 +0200)]
Put file input form at the top of submission form
Christopher Allan Webber [Sun, 3 Jul 2011 14:43:39 +0000 (09:43 -0500)]
Merge remote branch 'remotes/jwandborg/f409-redirect_to_user_page_upon_submit'
Christopher Allan Webber [Sun, 3 Jul 2011 14:42:45 +0000 (09:42 -0500)]
class="media_image" accidentally added back during 400 merge. Fixing.
Christopher Allan Webber [Sun, 3 Jul 2011 14:29:09 +0000 (09:29 -0500)]
Switching single-quoted strings to double-quote to avoid escaping the apostrophe.. :)
Christopher Allan Webber [Sun, 3 Jul 2011 14:26:40 +0000 (09:26 -0500)]
Caution an admin when they're editing someone else's media.
Christopher Allan Webber [Sun, 3 Jul 2011 14:21:24 +0000 (09:21 -0500)]
user_gallery_url -> {{ user_gallery_url }} ... How embarassing.
Christopher Allan Webber [Sun, 3 Jul 2011 13:31:35 +0000 (08:31 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b388+b391_edit_profile_link_on_user_page'
Caleb Forbes Davis V [Sun, 3 Jul 2011 07:43:57 +0000 (02:43 -0500)]
uses new 'username' variable in querystring to specify the user to edit
Previously, this view only allowed editing of the logged-in user. Now you
can specify the user to edit in the querystring. If you are an admin the
view allows you to edit any user's profile, with a warning message. The
warning only shows up if the admin is editing another user's profile.
Make sure to pass the username to this view at every step in the process
Caleb Forbes Davis V [Sun, 3 Jul 2011 07:41:39 +0000 (02:41 -0500)]
allows admins to edit user media
Caleb Forbes Davis V [Sun, 3 Jul 2011 07:37:19 +0000 (02:37 -0500)]
moves edit profile link to user page
Joar Wandborg [Sun, 3 Jul 2011 05:50:35 +0000 (07:50 +0200)]
Feature #409 - Submitting an image should redirect you back to user's
page w/ a message
* Successful submission redirects to the logged in user's page
(your own, presumably).
* "Woohoo! Submitted!" is launched into the tube of session messages
to appear on next pageload. If you're not aborting in the window
of 210ms it takes for the client to respond to the 302 and load
the logged in user's/your page that is, YMMV.
Christopher Allan Webber [Sun, 3 Jul 2011 03:09:46 +0000 (22:09 -0500)]
Make pagination on user profile point to the user gallery
This required a couple of changes:
- making a new render_pagination macro
- switching things over to use that
Christopher Allan Webber [Sun, 3 Jul 2011 02:31:25 +0000 (21:31 -0500)]
Just some spacing changes in profile.html
Christopher Allan Webber [Sun, 3 Jul 2011 02:31:04 +0000 (21:31 -0500)]
We should link to the user's gallery, not the logged in person's gallery.
Christopher Allan Webber [Sun, 3 Jul 2011 02:16:39 +0000 (21:16 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/f401_prev_next_media_nav'
Conflicts:
mediagoblin/db/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html
Christopher Allan Webber [Sun, 3 Jul 2011 00:01:55 +0000 (19:01 -0500)]
Let users write their own config and paste files w/o affecting git
Christopher Allan Webber [Sun, 3 Jul 2011 00:00:58 +0000 (19:00 -0500)]
Merge remote branch 'remotes/elrond/idea/lazyserver'
Christopher Allan Webber [Sun, 3 Jul 2011 00:00:01 +0000 (19:00 -0500)]
Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'
Conflicts:
mediagoblin/templates/mediagoblin/user_pages/media.html
Elrond [Sat, 2 Jul 2011 23:53:10 +0000 (01:53 +0200)]
Improve lazyserver.sh to handle args
Run "./lazyserver.sh -h" to learn more.
Christopher Allan Webber [Sat, 2 Jul 2011 23:31:02 +0000 (18:31 -0500)]
Only show pagination if we have pages to show
Joar Wandborg [Sat, 2 Jul 2011 23:30:07 +0000 (01:30 +0200)]
Feature #400 - Resize images to fit on page
* `mediagoblin.process_media.__init__`
* Added `medium` size image conversion
* Updated `thumbnail` conversion to use `queued_filename` instead
of `queued_file`
* `media.html`
* If there exists a `medium` size for the `MediaEntry`, it will
display instead of the original `main` image.
Christopher Allan Webber [Sat, 2 Jul 2011 22:49:51 +0000 (17:49 -0500)]
Issue 406: media_details template deprecated. Removing!
Christopher Allan Webber [Sat, 2 Jul 2011 22:46:26 +0000 (17:46 -0500)]
Merge remote branch 'remotes/gullydwarf-cfdv/b404_edit_profile_navfix'