aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
Commit message (Collapse)AuthorAgeFilesLines
* Move db.sql.migration_tools to db.migration_tools.Elrond2013-01-081-1/+1
| | | | Follow the new trend.
* Move all the migration tools into new migration_tools.pyElrond2013-01-081-1/+1
| | | | | | | | | Factor all the migration related stuff out into a new .db.sql.migration_tools. First we don't have to load this module for our normal server. Second it makes all the import dependencies a little more cleaner.
* Move db.sql.models* to db.models*Sebastian Spaeth2013-01-071-1/+1
|
* Move db.sql.util to db.utilSebastian Spaeth2013-01-071-1/+1
| | | | | | | | Now that sqlalchemy is providing the database abstractions, there is no need to hide everything in db.sql. sub-modules. It complicates the code and provides a futher layer of indirection. Move the db.sql.util.py to db.util.py and adapt the importers.
* Move db.sql.migrations to db.migrationsSebastian Spaeth2012-12-251-1/+1
|
* Move db.sql.open to db.openSebastian Spaeth2012-12-251-1/+1
| | | | | | Now that mongo has been ripped out and sqlalchemy is already providing the database abstraction, there is no need to hide everything in the sql module. Transition db.sql.open to db.open and adapt all direct importers.
* RIP out mongoSebastian Spaeth2012-12-255-116/+3
| | | | | | | | | Since sqlalchemy is providing our database abstraction and we have moved away from Mongo as the underlying database, it is now time to simplify things and rip out mongo. This provides the bulk of the changes, and can stand on its own. There are some followup tasks that can be done, such as removing now unneeded abstraction layers, e.g. db.sql.fake.py
* Mongo removal: Remove the validate=True arg to obj.save()Elrond2012-12-241-1/+1
| | | | | all callers were forced to use validate=True anyway. So remove this useless stuff.
* Try ipython-based shell first, falling back to plain shellSebastian Spaeth2012-12-191-9/+8
| | | | Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* makeadmin and changepasswd had swapped help textChristopher Allan Webber2012-12-181-2/+2
|
* Fixed testsJoar Wandborg2012-09-151-1/+1
| | | | | - Adapt tests to new global_config arg for run_dbupdate - Account for [plugins] not being set in config
* Add OAuth models, plugin DB migrations, api_authJoar Wandborg2012-09-131-4/+42
|
* replaced os.path.split()[0] with os.path.dirname() and corrected a couple of ↵Aleksej2012-08-131-1/+1
| | | | comments
* Duplication of rstrip unnecessary in link_assets functionChristopher Allan Webber2012-08-121-1/+1
| | | | Thanks for catching AVRS!
* Setup the scaffolding for theme installing, but it doesn't work yetChristopher Allan Webber2012-07-141-2/+4
|
* Break the asset linking code off into a reusable functionChristopher Allan Webber2012-07-141-30/+50
| | | | In the future, the install command should be able to use that as well.
* asset linking command now worksChristopher Allan Webber2012-07-141-7/+26
|
* Start of the `./bin/gmg theme assetlink` command.Christopher Allan Webber2012-07-142-0/+87
| | | | Mostly works but doesn't handle all the places it could break.
* 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.