aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'remotes/aaronw/feature410_markdown_bio'Christopher Allan Webber2011-07-133-4/+9
|\
| * Markdown-enable user bio (Feature 410)Aaron Williamson2011-07-103-4/+9
| |
* | Merge branch 'master' into f411_new_migrationsChristopher Allan Webber2011-07-1310-60/+83
|\ \ | | | | | | | | | | | | Conflicts: mediagoblin/db/open.py
| * | removed email variables from globals moduleDeb2011-07-124-16/+4
| | |
| * | Move db_name default into config_spec.iniElrond2011-07-113-3/+3
| |/ | | | | | | | | | | | | The default name of the database ("mediagoblin") was coded in db/open.py and init/celery/__init__.py. Instead use the new config system to have this as the default for the "db_name" config option.
| * Sorry, that OptionalField belonged there.Christopher Allan Webber2011-07-091-1/+2
| | | | | | | | I am a bad person and am not allowed to commit anything else today.
| * <Elrond> Oh well... Did I really have this wtforms cruft in my setup_workbenchChristopher Allan Webber2011-07-091-2/+1
| | | | | | | | commit. :-( I don't know even, how it got in there. :-|
| * Added a note about workbench only currently being used by celeryChristopher Allan Webber2011-07-091-0/+3
| |
| * Merge remote branch 'remotes/elrond/dev/init'Christopher Allan Webber2011-07-092-34/+56
| |\
| | * Factor setup_workbench into init submodule.Elrond2011-07-073-5/+15
| | |
| | * Let setup_global_and_app_config call setup_globalsElrond2011-07-052-3/+5
| | | | | | | | | | | | | | | | | | Let setup_global_and_app_config set the global and app config in the mg_globals already. This way, the config is available to everyone very early.
| | * Create setup_global_and_app_configElrond2011-07-042-14/+16
| | | | | | | | | | | | | | | | | | | | | Moving the config reading and error reporting from app.py to init/__init__.py. Straight forward. This also fixes the duplicated exceptions.
| | * Move setting up of staticdirector to init submoduleElrond2011-07-042-15/+24
| | | | | | | | | | | | | | | This duplicates some exceptions, which will be fixed very soon.
| * | Adjusting documentation in indexes.py also re: more info in deprecationChristopher Allan Webber2011-07-091-4/+6
| | |
| * | Changing things back so that we keep information about deprecatedChristopher Allan Webber2011-07-091-3/+10
| | | | | | | | | | | | indexes around.
* | | Duplicate migration numbers not allowed, broChristopher Allan Webber2011-07-131-0/+2
| | |
* | | Elrond thinks we should use one of print/sys.stdout.write and .flush()Christopher Allan Webber2011-07-131-1/+5
| | | | | | | | | | | | I don't see the harm, so... done.
* | | A couple of tests related to migrations_to_run()Christopher Allan Webber2011-07-131-1/+35
| | | | | | | | | | | | | | | Includes a test making sure an exception is raised if current_migration not set in database
* | | We should *raise* MissingCurrentMigration :)Christopher Allan Webber2011-07-131-1/+1
| | | | | | | | | | | | Thanks for the catch, Elrond.
* | | Removing old style migrations... not in use anymoreChristopher Allan Webber2011-07-112-63/+3
| | |
* | | Just making a note of where the new migrations will go!Christopher Allan Webber2011-07-101-0/+11
| | |
* | | Setup the application to record the database version if missing on launchChristopher Allan Webber2011-07-101-0/+11
| | |
* | | Use new migrations system in ./bin/gmg migrateChristopher Allan Webber2011-07-101-14/+22
| | |
* | | give option in connect_database_from_config to connect to a pymongo.ConnectionChristopher Allan Webber2011-07-101-8/+25
| | |
* | | Made it so that it's migrate_new() which installs the migrationChristopher Allan Webber2011-07-101-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 Webber2011-07-101-2/+4
| | |
* | | test_run_partial_migrations() working!Christopher Allan Webber2011-07-101-1/+13
| | |
* | | testing tools install_fixtures_simple and assert_db_meets_expectedChristopher Allan Webber2011-07-101-0/+32
| | | | | | | | | | | | Thought I installed these... guess I didn't!
* | | test_run_full_migrations() all working properly!Christopher Allan Webber2011-07-101-26/+81
| | |
* | | No reason to have migration_number optional or default to NoneChristopher Allan Webber2011-07-101-1/+1
| | |
* | | Mock out tests, define expected results, add first testChristopher Allan Webber2011-07-101-0/+115
| | | | | | | | | | | | Specifically test_migrations_registered_and_sorted() :)
* | | Move the call to install_migration_version_if_missing() to migrations_to_run()Christopher Allan Webber2011-07-101-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 functionChristopher Allan Webber2011-07-101-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 unicodeChristopher Allan Webber2011-07-101-6/+6
| | |
* | | Added the actual fake/testing migrations. Haven't run them yet...Christopher Allan Webber2011-07-101-4/+22
| | |
* | | Simpler run_migrations method.Christopher Allan Webber2011-07-101-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 scaffoldingChristopher Allan Webber2011-07-101-0/+166
| | | | | | | | | | | | Not usable yet, but fleshing out well!
* | | Making sure migration_number > 0 :)Christopher Allan Webber2011-07-091-1/+3
| | |
* | | run_new_migrations() makes more senseChristopher Allan Webber2011-07-091-1/+1
| | |
* | | Some instructions in the RegisterMigration docstring on how to use.Christopher Allan Webber2011-07-091-0/+13
| | |
* | | latest_migration now returns migration numbers only, and 0 if no migrations.Christopher Allan Webber2011-07-091-6/+10
| | |
* | | Migrating quietly, not iteratively, that comment should say!Christopher Allan Webber2011-07-091-1/+1
| | |
* | | New migration utility code.... I haven't tested this! ;)Christopher Allan Webber2011-07-091-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 Webber2011-07-091-1/+1
|\ \
| * | bug #404 - corrects querystring variable name in redirectCaleb Forbes Davis V2011-07-071-1/+1
| | |
* | | Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry'Christopher Allan Webber2011-07-095-31/+80
|\ \ \
| * | | Updated `MediaCommentForm.field_comment` => `MediaCommentForm.comment_content`Joar Wandborg2011-07-073-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 Wandborg2011-07-075-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 Webber2011-07-091-1/+2
|\ \ \ \
| * | | | Bug #437 - adds required validator to slug field for media edit'Caleb Forbes Davis V2011-07-071-1/+2
| | |/ / | |/| | | | | | | | | | otherwise we get a 404 because we navigate to blank slug