Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Duplicate migration numbers not allowed, bro | Christopher Allan Webber | 2011-07-13 | 1 | -0/+2 |
| | |||||
* | Elrond thinks we should use one of print/sys.stdout.write and .flush() | Christopher Allan Webber | 2011-07-13 | 1 | -1/+5 |
| | | | | I don't see the harm, so... done. | ||||
* | A couple of tests related to migrations_to_run() | Christopher Allan Webber | 2011-07-13 | 1 | -1/+35 |
| | | | | | Includes a test making sure an exception is raised if current_migration not set in database | ||||
* | We should *raise* MissingCurrentMigration :) | Christopher Allan Webber | 2011-07-13 | 1 | -1/+1 |
| | | | | Thanks for the catch, Elrond. | ||||
* | Removing old style migrations... not in use anymore | Christopher Allan Webber | 2011-07-11 | 2 | -63/+3 |
| | |||||
* | Just making a note of where the new migrations will go! | Christopher Allan Webber | 2011-07-10 | 1 | -0/+11 |
| | |||||
* | Setup the application to record the database version if missing on launch | Christopher Allan Webber | 2011-07-10 | 1 | -0/+11 |
| | |||||
* | Use new migrations system in ./bin/gmg migrate | Christopher Allan Webber | 2011-07-10 | 1 | -14/+22 |
| | |||||
* | give option in connect_database_from_config to connect to a pymongo.Connection | Christopher Allan Webber | 2011-07-10 | 1 | -8/+25 |
| | |||||
* | Made it so that it's migrate_new() which installs the migration | Christopher Allan Webber | 2011-07-10 | 1 | -3/+18 |
| | | | | version if missing, migrations_to_run just throws an error if not set | ||||
* | test_migrations_recorded_as_(latest|zero) tests passing :) | Christopher Allan Webber | 2011-07-10 | 1 | -2/+4 |
| | |||||
* | test_run_partial_migrations() working! | Christopher Allan Webber | 2011-07-10 | 1 | -1/+13 |
| | |||||
* | testing tools install_fixtures_simple and assert_db_meets_expected | Christopher Allan Webber | 2011-07-10 | 1 | -0/+32 |
| | | | | Thought I installed these... guess I didn't! | ||||
* | test_run_full_migrations() all working properly! | Christopher Allan Webber | 2011-07-10 | 1 | -26/+81 |
| | |||||
* | No reason to have migration_number optional or default to None | Christopher Allan Webber | 2011-07-10 | 1 | -1/+1 |
| | |||||
* | Mock out tests, define expected results, add first test | Christopher Allan Webber | 2011-07-10 | 1 | -0/+115 |
| | | | | Specifically test_migrations_registered_and_sorted() :) | ||||
* | Move the call to install_migration_version_if_missing() to migrations_to_run() | Christopher Allan Webber | 2011-07-10 | 1 | -5/+7 |
| | | | | | This means there's a serious side effect of calling this, but there's no way to get useful data here unless if that's set anyway. | ||||
* | install_migration_version_if_missing() now a separate function | Christopher Allan Webber | 2011-07-10 | 1 | -7/+19 |
| | | | | | Also added it to MigrationManager.migrate_new(), because we'll always need a migration number when migrating. | ||||
* | Make sure all these strings in db/util.py are unicode | Christopher Allan Webber | 2011-07-10 | 1 | -6/+6 |
| | |||||
* | Added the actual fake/testing migrations. Haven't run them yet... | Christopher Allan Webber | 2011-07-10 | 1 | -4/+22 |
| | |||||
* | Simpler run_migrations method. | Christopher Allan Webber | 2011-07-10 | 1 | -16/+13 |
| | | | | | | | | 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. | ||||
* | test_migrations.py w/ migrate'able fixtures and some migration scaffolding | Christopher Allan Webber | 2011-07-10 | 1 | -0/+166 |
| | | | | Not usable yet, but fleshing out well! | ||||
* | Making sure migration_number > 0 :) | Christopher Allan Webber | 2011-07-09 | 1 | -1/+3 |
| | |||||
* | run_new_migrations() makes more sense | Christopher Allan Webber | 2011-07-09 | 1 | -1/+1 |
| | |||||
* | Some instructions in the RegisterMigration docstring on how to use. | Christopher Allan Webber | 2011-07-09 | 1 | -0/+13 |
| | |||||
* | latest_migration now returns migration numbers only, and 0 if no migrations. | Christopher Allan Webber | 2011-07-09 | 1 | -6/+10 |
| | |||||
* | Migrating quietly, not iteratively, that comment should say! | Christopher Allan Webber | 2011-07-09 | 1 | -1/+1 |
| | |||||
* | New migration utility code.... I haven't tested this! ;) | Christopher Allan Webber | 2011-07-09 | 1 | -0/+136 |
| | | | | | | | | 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 | ||||
* | Merge remote branch 'remotes/gullydwarf-cfdv/b404_v3_edit_profile_submit_fail' | Christopher Allan Webber | 2011-07-09 | 1 | -1/+1 |
|\ | |||||
| * | bug #404 - corrects querystring variable name in redirect | Caleb Forbes Davis V | 2011-07-07 | 1 | -1/+1 |
| | | |||||
* | | Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry' | Christopher Allan Webber | 2011-07-09 | 5 | -31/+80 |
|\ \ | |||||
| * | | Updated `MediaCommentForm.field_comment` => `MediaCommentForm.comment_content` | Joar Wandborg | 2011-07-07 | 3 | -23/+24 |
| | | | | | | | | | | | | * Also changed file encoding of `user_pages/forms.py` from dos to unix. | ||||
| * | | Issue #431 - Prevent comment link expiry - Added functionality for comment ↵ | Joar Wandborg | 2011-07-07 | 5 | -12/+60 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 :) | ||||
* | | | Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty' | Christopher Allan Webber | 2011-07-09 | 1 | -1/+2 |
|\ \ \ | |||||
| * | | | Bug #437 - adds required validator to slug field for media edit' | Caleb Forbes Davis V | 2011-07-07 | 1 | -1/+2 |
| | |/ | |/| | | | | | | | otherwise we get a 404 because we navigate to blank slug | ||||
* | | | Merge remote branch 'remotes/schendje/master' | Christopher Allan Webber | 2011-07-09 | 13 | -98/+90 |
|\ \ \ | |||||
| * | | | Tiny height fix to footer | Jef van Schendel | 2011-07-08 | 1 | -1/+1 |
| | | | | |||||
| * | | | Tiny padding fix for forms/h1 | Jef van Schendel | 2011-07-08 | 1 | -1/+1 |
| | | | | |||||
| * | | | Fix logo styling, positioning | Jef van Schendel | 2011-07-08 | 4 | -16/+4 |
| | | | | |||||
| * | | | Moved Submit button to header, styled button | Jef van Schendel | 2011-07-08 | 3 | -33/+41 |
| | | | | |||||
| * | | | Added sidebar to profile page; moved some content | Jef van Schendel | 2011-07-08 | 3 | -23/+15 |
| | | | | |||||
| * | | | Remove p style; not need yet | Jef van Schendel | 2011-07-08 | 1 | -5/+0 |
| | | | | |||||
| * | | | Change pagination styling; add 2 images | Jef van Schendel | 2011-07-07 | 4 | -8/+13 |
| | | | | |||||
| * | | | Additional style changes to navigation; add three navigation images | Jef van Schendel | 2011-07-07 | 5 | -11/+14 |
| | | | | |||||
| * | | | Experimental black-and-white style change | Jef van Schendel | 2011-07-07 | 1 | -6/+7 |
| |/ / | |||||
* | | | Removing trailing whitespace from this file | Christopher Allan Webber | 2011-07-09 | 1 | -8/+8 |
| | | | |||||
* | | | Add a warning to the user that registrations are disabled. | Christopher Allan Webber | 2011-07-09 | 1 | -1/+4 |
| | | | |||||
* | | | Merge remote branch 'remotes/amusablelemur/feature374' | Christopher Allan Webber | 2011-07-09 | 5 | -8/+24 |
|\ \ \ | |||||
| * | | | Updated spacings in code for better readability | Rasmus Larsson | 2011-07-09 | 3 | -6/+6 |
| | | | | |||||
| * | | | Updated the loginpage to not show a link to register if registrations are ↵ | Rasmus Larsson | 2011-07-09 | 2 | -1/+4 |
| | | | | | | | | | | | | | | | | disabled |