788 Commits

Author SHA1 Message Date
Will Kahn-Greene
ef8e47f260 Changes clone url from http url to git url
Cloning over http is always yuckier than cloning over git protocol.
2011-07-15 12:32:21 -04:00
Christopher Allan Webber
0d91af09d2 Use cleaned_markdown_conversion in both cases in edit/views.py 2011-07-14 00:40:16 -05:00
Christopher Allan Webber
90e342f90f app.py and migrate.py must import migrations in order to load said migrations... 2011-07-14 00:32:01 -05:00
Christopher Allan Webber
5ebe69e5a0 First migration: Add markdown bio! 2011-07-14 00:00:24 -05:00
Christopher Allan Webber
3bc3d429fe Indenting section in the autoscape block 2011-07-13 23:20:16 -05:00
Christopher Allan Webber
fb5075e6b2 Merge remote branch 'remotes/aaronw/feature410_markdown_bio' 2011-07-13 23:19:46 -05:00
Christopher Allan Webber
c47c37ed95 Merge branch 'master' into f411_new_migrations
Conflicts:
	mediagoblin/db/open.py
2011-07-13 23:14:42 -05:00
Christopher Allan Webber
59051a23f0 Duplicate migration numbers not allowed, bro 2011-07-13 22:32:51 -05:00
Christopher Allan Webber
ecf518020f Elrond thinks we should use one of print/sys.stdout.write and .flush()
I don't see the harm, so... done.
2011-07-13 21:14:31 -05:00
Christopher Allan Webber
77fb1e1331 A couple of tests related to migrations_to_run()
Includes a test making sure an exception is raised if
current_migration not set in database
2011-07-13 21:09:04 -05:00
Christopher Allan Webber
511b10efda We should *raise* MissingCurrentMigration :)
Thanks for the catch, Elrond.
2011-07-13 20:58:13 -05:00
Deb
6ae8b541f9 removed email variables from globals module 2011-07-12 21:21:35 -04:00
Christopher Allan Webber
c2ddd85e4a Removing old style migrations... not in use anymore 2011-07-11 21:09:36 -05:00
Christopher Allan Webber
50dd725c58 Merge remote branch 'remotes/osamak/master' 2011-07-11 20:31:45 -05:00
Elrond
39c6b2bdc6 Move db_name default into config_spec.ini
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.
2011-07-11 23:25:15 +02:00
Osama Khalid
6d27a5cf63 python-lxml is required on Fedora 2011-07-11 20:55:25 +03:00
Osama Khalid
35166f7654 Referring to the Hacking HOWTO in deploymenthowto (this is where I looked in first when I wanted to build MG) 2011-07-11 20:34:37 +03:00
Christopher Allan Webber
0c915735d5 Just making a note of where the new migrations will go! 2011-07-10 22:58:48 -05:00
Christopher Allan Webber
ff94114c5d Setup the application to record the database version if missing on launch 2011-07-10 22:50:03 -05:00
Christopher Allan Webber
ba04c88730 Use new migrations system in ./bin/gmg migrate 2011-07-10 22:44:33 -05:00
Christopher Allan Webber
f92bea33c7 give option in connect_database_from_config to connect to a pymongo.Connection 2011-07-10 22:44:20 -05:00
Christopher Allan Webber
dab0d24d98 Made it so that it's migrate_new() which installs the migration
version if missing, migrations_to_run just throws an error if not set
2011-07-10 22:02:51 -05:00
Christopher Allan Webber
9548c6463b test_migrations_recorded_as_(latest|zero) tests passing :) 2011-07-10 21:51:02 -05:00
Christopher Allan Webber
01040b78e1 test_run_partial_migrations() working! 2011-07-10 21:29:23 -05:00
Aaron Williamson
4c465852d1 Markdown-enable user bio (Feature 410) 2011-07-10 22:28:48 -04:00
Christopher Allan Webber
85663692cd testing tools install_fixtures_simple and assert_db_meets_expected
Thought I installed these... guess I didn't!
2011-07-10 21:16:50 -05:00
Christopher Allan Webber
ae6b0a4e6e test_run_full_migrations() all working properly! 2011-07-10 21:14:38 -05:00
Christopher Allan Webber
0143c5a1e4 No reason to have migration_number optional or default to None 2011-07-10 18:48:09 -05:00
Christopher Allan Webber
77ab4b66ce Mock out tests, define expected results, add first test
Specifically test_migrations_registered_and_sorted() :)
2011-07-10 18:46:48 -05:00
Christopher Allan Webber
9cf8b469e7 Move the call to install_migration_version_if_missing() to migrations_to_run()
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.
2011-07-10 18:43:08 -05:00
Christopher Allan Webber
1b38cfa3b7 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.
2011-07-10 18:27:38 -05:00
Christopher Allan Webber
8569533f21 Make sure all these strings in db/util.py are unicode 2011-07-10 16:23:36 -05:00
Christopher Allan Webber
77ffe9be58 Added the actual fake/testing migrations. Haven't run them yet... 2011-07-10 16:19:49 -05:00
Christopher Allan Webber
d0ee0003a2 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.
2011-07-10 15:41:18 -05:00
Christopher Allan Webber
42fe078029 test_migrations.py w/ migrate'able fixtures and some migration scaffolding
Not usable yet, but fleshing out well!
2011-07-10 15:28:46 -05:00
Christopher Allan Webber
32ae9e1b4e Making sure migration_number > 0 :) 2011-07-09 18:17:54 -05:00
Christopher Allan Webber
ec86d16a53 run_new_migrations() makes more sense 2011-07-09 17:21:47 -05:00
Christopher Allan Webber
3054e2b3cb Sorry, that OptionalField belonged there.
I am a bad person and am not allowed to commit anything else today.
2011-07-09 17:16:18 -05:00
Christopher Allan Webber
f4cd7a4ade <Elrond> Oh well... Did I really have this wtforms cruft in my setup_workbench
commit. :-(  I don't know even, how it got in there. :-|
2011-07-09 17:13:21 -05:00
Christopher Allan Webber
1fd97db348 Added a note about workbench only currently being used by celery 2011-07-09 17:11:23 -05:00
Christopher Allan Webber
df01342e5e Merge remote branch 'remotes/elrond/dev/init' 2011-07-09 16:57:20 -05:00
Christopher Allan Webber
7ecb1b0726 Adjusting documentation in indexes.py also re: more info in deprecation 2011-07-09 16:52:57 -05:00
Christopher Allan Webber
50bb8fe5e4 Changing things back so that we keep information about deprecated
indexes around.
2011-07-09 16:51:19 -05:00
Christopher Allan Webber
363fc97259 Some instructions in the RegisterMigration docstring on how to use. 2011-07-09 15:10:47 -05:00
Christopher Allan Webber
dca6406a90 latest_migration now returns migration numbers only, and 0 if no migrations. 2011-07-09 15:07:40 -05:00
Christopher Allan Webber
993f0a9321 Migrating quietly, not iteratively, that comment should say! 2011-07-09 14:51:48 -05:00
Christopher Allan Webber
51dcfb5682 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
2011-07-09 14:50:41 -05:00
Christopher Allan Webber
9980c5f4f4 Merge remote branch 'remotes/gullydwarf-cfdv/b404_v3_edit_profile_submit_fail' 2011-07-09 09:30:43 -05:00
Christopher Allan Webber
19e7ec24d0 Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry' 2011-07-09 09:23:34 -05:00
Christopher Allan Webber
83d3922b6e Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty' 2011-07-09 09:20:22 -05:00