aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/import_export.py
Commit message (Collapse)AuthorAgeFilesLines
* This import_export stuff is mongodb days leftovers. Removing!Christopher Allan Webber2014-11-261-256/+0
| | | | This commit sponsored by Ray Redd. Thanks!
* Revert "use parser.parse_known_args() instead of parser.parse_args()"Christopher Allan Webber2013-08-161-14/+13
| | | | | | | | | | | | | | This reverts commit 029e779c468ba1a6bfd893679cfaae7f418f45dd. (and a bit more!) This wasn't needed anymore because we did a "rest" capture and passed that over to the reprocess run command. Conflicts: mediagoblin/gmg_commands/assetlink.py mediagoblin/gmg_commands/dbupdate.py mediagoblin/gmg_commands/import_export.py mediagoblin/gmg_commands/users.py
* Throw an error if there are unrecognized argumentsRodney Ewing2013-08-161-0/+3
|
* use parser.parse_known_args() instead of parser.parse_args()Rodney Ewing2013-08-161-13/+13
|
* Patch by Strum. Ticket #451 - Convert all mongokit style .find, .find_one, ↵Rodney Ewing2013-07-111-2/+2
| | | | .one calls over to SQLAlchemy queries
* RIP out mongoSebastian Spaeth2012-12-251-3/+2
| | | | | | | | | 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
* Fix problems from pyflakes outputWill Kahn-Greene2012-06-031-4/+2
|
* gmg env_import shouldn't crash on unicode ...Joar Wandborg2012-04-021-1/+1
| | | | characters in media titles
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Dot-Notation for MediaEntry.media_filesElrond2012-01-041-2/+2
|
* 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
|
* 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-131-3/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * | Whitespace and formatting cleanup.Nathan Yergler2011-10-011-3/+4
| |/ | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Make gmg's -cf option a global optionElrond2011-10-231-2/+0
| | | | | | | | | | | | | | | | | | 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-231-3/+2
|/ | | | | | | 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.
* 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-011-1/+1
|
* 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
|
* Removing some print debugging from import_exportChristopher Allan Webber2011-08-201-8/+0
|
* Use "with closing(tf)" since TarFile doesn't have .__exit__()Christopher Allan Webber2011-08-201-1/+2
|
* Removing unused importsChristopher Allan Webber2011-08-201-5/+0
|
* Feature #298 - Create environment tarballJoar Wandborg2011-08-121-52/+78
| | | | * Reviewed the code and fixed some bugs
* Feature #298 - Create environment tarballJoar Wandborg2011-08-121-49/+95
| | | | | | | | * It's now possible to import/export your environment from/to a tarball. ./bin/gmg env_export [ -c mediagoblin_local.ini ] test.tar and ./bin/gmg env_import [ -c mediagoblin_local.ini ] test.tar
* Feature 298 - Create environment tarballJoar Wandborg2011-08-091-21/+88
| | | | Saving changes.
* Feature #298 - Changed some defaults in gmg_commands.import_exportJoar Wandborg2011-08-081-4/+17
|
* Feature #298Joar Wandborg2011-08-071-1/+16
| | | | * Added some minor things to gmg_commands.import_export
* Feature #298 - Environment tarballJoar Wandborg2011-08-071-0/+87
* Added command hooks for gmg_commands.import_export * Added (DANGEROUSLY BLEEDING EDGE) gmg_commands.import_export