aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
Commit message (Collapse)AuthorAgeFilesLines
* Make sure MigrationManagers always get Unicode names.Brett Smith2012-07-041-1/+1
| | | | | If we fail to do this, SQLAlchemy complains that we're binding a non-Unicode value to a Unicode column.
* Fix problems from pyflakes outputWill Kahn-Greene2012-06-032-6/+3
|
* Deprecate ./bin/gmg migrate.Christopher Allan Webber2012-04-292-6/+8
| | | | | Keeping it around just in case someone manually wants to migrate before running the convert thing or... something. Probably silly.
* Removing wipealldata command and deleting env_export/env_import for now.Christopher Allan Webber2012-04-292-71/+14
| | | | | | None of these tools really work anymore in the SQL world, and possibly aren't as necessary either. In the meanwhile, just disabling them to reduce confusion.
* gmg env_import shouldn't crash on unicode ...Joar Wandborg2012-04-021-1/+1
| | | | characters in media titles
* SQL based tests and refactored Celery setup stuffChristopher Allan Webber2012-03-261-2/+6
| | | | | | - Changed config files of test configs to use SQL - Updated celery initialization tools, factored them to be able to use the "big instance" application stuff
* Wipe the configured database, not the default oneJakob Kramer2012-03-241-2/+6
|
* mongo->sql conversion script now runs mongo migrations first, just in caseChristopher Allan Webber2012-03-172-2/+11
|
* Mongosql imports made celery get set up before we wanted it via ./bin/gmg ↵Christopher Allan Webber2012-03-171-2/+1
| | | | | | commands Just moved the import into the actual function. That resolved the issue!
* Removing an unnecessary line of whitespace AND crediting Hugo Boyer for the ↵Christopher Allan Webber2012-03-141-1/+0
| | | | | | ipython code! Thanks Hugo Boyer! I forgot to credit you in my last commit.
* ipython support in ./bin/gmg shell!Christopher Allan Webber2012-03-141-8/+37
|
* Create "gmg convert_mongo_to_sql" commandElrond2012-02-232-0/+29
| | | | | | | | | Finally, to make testing of sql a bit easier, create a bin/gmg command to do the conversion from mongo to sql. It's currently named "convert_mongo_to_sql". The most important option is the gmg -cf option to give a configfile with the appropiate sql_engine definition.
* Updates so that dbupdate command worksChristopher Allan Webber2012-02-182-6/+15
| | | | | | - Various fixes to dbupdate itself - Switching db/sql/migrations.py to use a dict instead of a list - Registering the function
* Merge branch 'master' into sqlmigrateChristopher Allan Webber2012-02-187-7/+7
|\ | | | | | | | | Conflicts: mediagoblin/db/sql/models.py
| * It's 2012 all up in hereChristopher Allan Webber2012-02-027-7/+7
| |
* | No need for self here (thanks again Elrond ;))Christopher Allan Webber2012-01-291-1/+1
| |
* | Big ol' start of the SQL migrations system.Christopher Allan Webber2012-01-291-0/+84
|/ | | | Things definitely don't work yet, but should be heading in the right direction.
* Dot-Notation for MediaEntry.media_filesElrond2012-01-041-2/+2
|
* Fix "bin/gmg migrate" after mongo moveElrond2011-12-281-2/+2
| | | | | | | When moving most stuff from db to db/mongo, "gmg migrate" was left out. Fix it now!
* Fixed import_exportJoar Wandborg2011-12-151-5/+5
| | | | | - Mongokit instead of pymongo - db.MediaEntry instead of db.media_entry (pymongo style)
* Dot-Notation for MediaEntry.titleElrond2011-12-051-2/+2
|
* Dot-Notation for Users.is_adminElrond2011-12-051-1/+1
|
* Dot-Notation for Users.statusElrond2011-12-051-1/+1
|
* Dot-Notation for Users.email_verifiedElrond2011-12-051-1/+1
|
* Dot-Notation for Users.pw_hashElrond2011-12-051-2/+2
|
* Dot-Notation for Users.emailElrond2011-12-051-1/+1
|
* Dot-Notation for Users.usernameElrond2011-12-051-1/+1
|
* Most users won't see this but having space after prompt still nice for ↵Christopher Allan Webber2011-12-031-1/+1
| | | | passwords.
* PEP-8'ifying prompt_if_not_setChristopher Allan Webber2011-12-031-3/+3
|
* Prompt for arguments in adduser if not present (I created a function in ↵Manuel Urbano Santos2011-12-032-1/+17
| | | | util.py to check and prompt for arguments).
* Change adduser arguments from positional to --keyword style.Manuel Urbano Santos2011-12-031-5/+5
|
* Use setup_global_and_app_config in gmg's migrate.Elrond2011-11-261-3/+3
| | | | | | Instead of using read_mediagoblin_config, forgetting to check the validation report and then finding the main app section by hand, just use setup_global_and_app_config.
* Merge branch 'video_gstreamer-only'Joar Wandborg2011-11-211-4/+6
|\ | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/submit/views.py
| * import_export - Added some error handlingJoar Wandborg2011-10-141-4/+6
| | | | | | | | We still want to be able to do an export if a file can't be read
* | export: Handle Unicode titles better in loggingElrond2011-11-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | log("ascii %s" % unicode_string) tries to convert unicode to ascii, which might fail. Better use log(u"unicode format %s" % unicode_string) and let the logging framework handle the conversion. This works much better and the exceptions still happening aren't stopping the main app. Also remove one useless import.
* | Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-134-12/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * | has_key is deprecated, converting uses to use "in" operator.Nathan Yergler2011-10-011-1/+1
| | |
| * | Whitespace and formatting cleanup.Nathan Yergler2011-10-014-11/+10
| |/ | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Default to mediagoblin_local.ini if available in ./bin/gmg commandsChristopher Allan Webber2011-10-291-2/+13
| |
* | Removed suggestion that the user run ./bin/buildoutChristopher Allan Webber2011-10-261-1/+1
| |
* | Added an extra warning about wipealldata being pretty inflexible.Christopher Allan Webber2011-10-261-0/+4
| |
* | Make gmg's -cf option a global optionElrond2011-10-236-19/+5
| | | | | | | | | | | | | | | | | | All gmg's subcommands used to have a -cf option to set the config file. Instead make this a gmg global option. This means: bin/gmg migrate -cf mediagoblin_2.ini gets bin/gmg -cf mediagoblin_2.ini migrate
* | Refactor gmg's cf option into a functionElrond2011-10-235-18/+19
| | | | | | | | | | | | | | Many (all?) gmg subcommands take a -cf option to change the used config file. This options used to be created in each subcommand's parse_setup. Add a helper function and use it around.
* | Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'Christopher Allan Webber2011-10-011-3/+3
|/ | | | | Conflicts: mediagoblin/util.py
* Fixed ./bin/gmg. import_export would not find BasicFileStorage, and ↵Joar Wandborg2011-09-141-1/+1
| | | | ./bin/gmg would throw an error no matter what command you tried to run.
* Refractored gmg_commands.import_exportJoar Wandborg2011-09-101-41/+49
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-017-7/+7
|
* We should use os.path.join to concatenate directories.Christopher Allan Webber2011-08-201-2/+2
|
* Import / export to a temporary directory if cache_path not provided.Christopher Allan Webber2011-08-201-8/+15
|
* Apparently we *should* _clean(args), that was commented out for debugging :)Christopher Allan Webber2011-08-201-1/+2
|