28 Commits

Author SHA1 Message Date
Christopher Allan Webber
b7a8760b6d Start of addmedia command. Kinda close to working ;) 2013-11-13 13:59:16 -06:00
Christopher Allan Webber
58bacb33ac More progress towards the new reprocessing infrastructure: args updating
This commit sponsored by Elizabeth Webber.  Thanks, sis!
2013-08-16 15:30:15 -07:00
Rodney Ewing
c30714805b Beginnings of a reprocess command 2013-08-16 15:30:13 -07:00
Rodney Ewing
aa387fc57e use parser.parse_known_args() instead of parser.parse_args() 2013-08-16 15:30:12 -07:00
Christopher Allan Webber
6afc8364e0 Generalize "gmg theme assetlink" -> "gmg assetlink" and cover both theme and 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!
2013-05-23 13:33:08 -05:00
Sebastian Spaeth
bc142abc55 RIP out mongo
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
2012-12-25 20:06:03 +01:00
Christopher Allan Webber
b28005984c makeadmin and changepasswd had swapped help text 2012-12-18 16:46:20 -06:00
Christopher Allan Webber
111a97524a Start of the ./bin/gmg theme assetlink command.
Mostly works but doesn't handle all the places it could break.
2012-07-14 12:55:14 -05:00
Christopher Allan Webber
088644a80b Deprecate ./bin/gmg migrate.
Keeping it around just in case someone manually wants to migrate
before running the convert thing or... something.  Probably silly.
2012-04-29 12:08:44 -05:00
Christopher Allan Webber
63578ee395 Removing wipealldata command and deleting env_export/env_import for now.
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.
2012-04-29 11:45:48 -05:00
Elrond
9891351256 Create "gmg convert_mongo_to_sql" command
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.
2012-02-23 23:49:09 +01:00
Christopher Allan Webber
3ea1cf36fc Updates so that dbupdate command works
- Various fixes to dbupdate itself
 - Switching db/sql/migrations.py to use a dict instead of a list
 - Registering the function
2012-02-18 23:19:09 -06:00
Christopher Allan Webber
cf29e8a824 It's 2012 all up in here 2012-02-02 09:44:13 -06:00
Christopher Allan Webber
ee91c2b88d Merge remote-tracking branch 'remotes/nyergler/pep8-ification'
Conflicts:
	mediagoblin/db/migrations.py
	mediagoblin/db/models.py
	mediagoblin/user_pages/views.py
	mediagoblin/util.py
2011-11-13 20:23:26 -06:00
Christopher Allan Webber
9d0a613be9 Default to mediagoblin_local.ini if available in ./bin/gmg commands 2011-10-29 16:24:52 -05:00
Elrond
15ac1458ed Make gmg's -cf option a global option
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
2011-10-23 21:33:52 +02:00
Christopher Allan Webber
b43b17fc26 Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'
Conflicts:
	mediagoblin/util.py
2011-10-01 21:27:36 -05:00
Nathan Yergler
285ffeddf3 has_key is deprecated, converting uses to use "in" operator. 2011-10-01 15:10:41 -07:00
Nathan Yergler
243c3843bd Whitespace and formatting cleanup.
* Removed trailing whitespace
* Line length < 80 where possible
* Honor conventions on number of blank lines
* Honor conventions about spaces around :, =
2011-10-01 15:10:02 -07:00
Will Kahn-Greene
12a100e4d8 508. Updates copyright/license information 2011-09-01 20:50:19 -04:00
Joar Wandborg
e86d4f5d51 Feature #298 - Environment tarball
*    Added command hooks for gmg_commands.import_export
*    Added (DANGEROUSLY BLEEDING EDGE) gmg_commands.import_export
2011-08-07 02:58:52 +02:00
Will Kahn-Greene
763cf83f64 Moves destroy_environment to wipealldata command 2011-07-30 08:39:07 -04:00
Christopher Allan Webber
7f4b44710b No need to describe usage of subcommands, gmg subcommand --help does that 2011-06-22 22:09:11 -05:00
Alejandro Villanueva
96108ea285 Adding new function to gmg_commands, adduser,makeadmin and changepw issue 373 2011-06-22 21:49:06 -05:00
Christopher Allan Webber
757f37a52d User migration works (but the rest of the system isn't updated for new user setup yet) 2011-05-22 10:52:53 -05:00
Christopher Allan Webber
8820121ad1 Move the general applicaiton setup commands to a utility module 2011-05-22 09:56:33 -05:00
Christopher Allan Webber
dbb92c6020 Move the ./bin/gmg shell command into its own module. 2011-05-22 09:25:51 -05:00
Christopher Allan Webber
029cad45c6 ./bin/gmg shell! Should make a lot of peoples' hacking lives easier I suspect :) 2011-05-15 19:02:11 -05:00