aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
Commit message (Collapse)AuthorAgeFilesLines
* modified gmg to use plugin media_types and converted image media_type to new ↵Rodney Ewing2013-07-021-9/+1
| | | | plugin style
* moved bcrypt_gen_password_hash to basic_auth/tools and added ↵Rodney Ewing2013-05-241-3/+3
| | | | gen_password_hash function to auth/__init__
* Cleaning a bit: os.path.sep.join -> os.path.joinChristopher Allan Webber2013-05-231-2/+2
|
* docstring update: link theme... and plugins!Christopher Allan Webber2013-05-231-1/+1
|
* Generalize "gmg theme assetlink" -> "gmg assetlink" and cover both theme and ↵Christopher Allan Webber2013-05-232-52/+29
| | | | | | | | | plugins We've moved the module... probably I'll re-add theme just to give a warning that this is deprecated. This commit sponsored by Kevin Williams. Thank you!
* Various fixes to plugin assetlinking command.Christopher Allan Webber2013-05-231-5/+5
| | | | | | | Actually trying to run the command helps figure out what needs to be fixed :) This commit sponsored by Justin Nichol. Thank you!
* Work towards getting plugin static linking/serving to workChristopher Allan Webber2013-05-231-7/+63
| | | | | | | | | - add link_plugin_assets. For now, incorrectly running from ./bin/gmg theme assetlink... uh, will fix ;) - Update paste and config_spec.ini configs to handle the locations and serving of the plugins' static resources This commit sponsored by Marko Dimjašević. Thank you!
* Fixing bug in dbupdate where it would explode on plugin that is missing ↵Christopher Allan Webber2013-05-161-0/+2
| | | | | | | | | | | MODELS or MIGRATIONS The reason it blew up was because in the latter caught exception, it wouldn't set models/migrations to an empty set, so it would actually use the previous run's models/migrations! That's what we get for "leaky" variables on python for loops :) This commit sponsored by Pascal Diogo Antunes. Thank you!
* Switch "sqlite_refcheck" keyword arg to "migrations" which Elrond thinks is ↵Christopher Allan Webber2013-04-261-1/+1
| | | | | | cleaner Also, if migrations is true, *explicitly* say that foreign key checking is off
* Don't turn on sqlite refcheck stuff during migrationsChristopher Allan Webber2013-04-261-1/+1
|
* Switching non-forms back to using normal pass_to_ugettextChristopher Allan Webber2013-04-241-1/+1
|
* Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms.Aditi Mittal2013-04-241-1/+1
|
* 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)