Christopher Allan Webber
e60f8719dd
Merge remote branch 'remotes/elrond/dev/init'
2011-07-17 18:58:32 -05:00
Christopher Allan Webber
e83dc091cc
docstring for MediaComment's structure
2011-07-17 17:06:06 -05:00
Christopher Allan Webber
080a81ec48
Described the MediaEntry structure in the docstring.
2011-07-17 16:51:36 -05:00
Christopher Allan Webber
16bcd1e714
Docstring for the User model's various schema fields
2011-07-17 15:49:49 -05:00
Christopher Allan Webber
3923174b70
Added instructions on how to run mongod --repair
2011-07-17 12:02:13 -05:00
Christopher Allan Webber
63fd974b4c
Docs: fixing an issue with being unable to install with distribute installed already
...
Basically, use "python bootstrap.py --distribute" if you get DistributionNotFound: distribute
2011-07-17 11:36:56 -05:00
Christopher Allan Webber
dd33ed06fb
Finished the docstring of the creature_add_magical_powers fake migration
2011-07-17 11:32:05 -05:00
Elrond
3f4b5e4a4e
Move application level setup of database to init/
...
Setting up the database now involves checking the
migrations status and setting up the globals.
Moved all of that into init/__init__.py:setup_database().
2011-07-17 17:45:50 +02:00
Christopher Allan Webber
fa92d52fa5
Migration for mediafiles main->original
2011-07-17 08:50:09 -05:00
Christopher Allan Webber
5f72a4c331
Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'
...
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/process_media/__init__.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/util.py
2011-07-16 16:28:12 -05:00
Christopher Allan Webber
8e9331c106
Merge remote branch 'remotes/cmoylan/test_submission_views_365'
2011-07-16 15:05:54 -05:00
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
Chris Moylan
9247769a14
Merge branch 'master' into test_submission_views_365
2011-07-13 21:58:25 -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
Caleb Forbes Davis V
cea8f2b632
adds "state" to tags indices
2011-07-13 12:18:50 -05:00
Caleb Forbes Davis V
1580c7c5ce
adds index for searching across all users' tagged images
2011-07-13 00:22:16 -05:00
Caleb Forbes Davis V
cc7ff3c505
enforces maximum tag length with (in)appropriate messaging
2011-07-13 00:03:49 -05:00
Caleb Forbes Davis V
4451219560
ensures no duplicate tags per media entry
2011-07-12 22:52:32 -05:00
Caleb Forbes Davis V
6f2e4585cc
uses standard functions instead of form filters and fixes taglist default
...
- seems simpler to use the same tag field processing procedures on media
submit and edit, so now processing with a regular function instead of
a form filter. Filters run on form load and post by default.
- moved tags to sidebar
- taglist defaults to [] instead of None
- adds case sensitivity toggle
2011-07-12 22:43:26 -05:00
Caleb Forbes Davis V
93e3468a2a
displays the tags on edit correctly now
...
-before it was running the tags field through the submit filter.
that was kind of dumb
-removes the filter function from the edit form
-adds unicode syntax in the filter function
-uses split correctly when saving the edited tags to mongodb
2011-07-12 20:43:16 -05:00
Deb
6ae8b541f9
removed email variables from globals module
2011-07-12 21:21:35 -04:00
Caleb Forbes Davis V
cdf538bd61
adds filter function to parse and clean tags field input
...
- for some reason the tags are showing up in the media edit form
with u'..' and surrounded with []. I don't know why, grr
2011-07-12 20:06:17 -05: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
Caleb Forbes Davis V
272469daf5
adds index for tag searches by an uploader
2011-07-10 23:36:21 -05: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
Chris Moylan
3d073d48cb
Merge branch 'master' into test_submission_views_365
2011-07-10 22:45:52 -05:00
Chris Moylan
9df37e8a4a
added suggestions as per http://bugs.foocorp.net/issues/365#note-9
2011-07-10 22:45:27 -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